バージョン9.0から非推奨: cleanupReshardCollection is deprecated. To abort a resharding operation, use abortReshardCollection instead.
定義
cleanupReshardCollectionバージョン 5.0 の新機能。
The
cleanupReshardCollectioncommand 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" })