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

sh.abortMoveCollection()(mongoshメソッド)

sh.abortMoveCollection(namespace)

進行中の moveCollection 操作を停止します。

バージョン8.0の新機能。

このメソッドはadminデータベースで実行する必要があります。

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

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

重要

This command is not supported in M0 and Flex clusters. For more information, see Unsupported Commands.

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

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

sh.abortMoveCollection( "<namespace>.<collection>" )
フィールド
タイプ
必要性
説明

coll

string

必須

移動を停止するデータベースとコレクションを指定します。

次の例では、 sales.us_accountsコレクションの新しいシャードへの進行中の移動を停止します。

sh.abortMoveCollection( "sales.us_accounts" )