AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

クリーンアップリシャードコレクション(データベースコマンド)

バージョン9.0から非推奨: cleanupReshardCollection is deprecated. To abort a resharding operation, use abortReshardCollection instead.

cleanupReshardCollection

バージョン 5.0 の新機能。

The cleanupReshardCollection command cleans up metadata of a failed resharding operation. You only need to run this command if a primary failover occurred while you ran a resharding operation.

このコマンドは、次の環境でホストされている配置で使用できます。

  • MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud

注意

This command is supported in all MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands.

  • MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン

  • MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン

このコマンドの構文は、次のとおりです。

db.adminCommand(
{
cleanupReshardCollection: "<database>.<collection>"
}
)

次の例では、 sales.ordersコレクションで失敗した再シャーディング操作のメタデータをクリーンアップします。

db.adminCommand({
cleanupReshardCollection: "sales.orders"
})
このページを評価