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

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

sh.abortReshardCollection(namespace)

バージョン 5.0 の新機能。

During a resharding operation, you can abort the operation with the sh.abortReshardCollection() method.

You can abort a resharding operation at any point until the commit phase. If the resharding operation has reached the commit phase before you run the sh.abortReshardCollection() method, the method returns an error.

重要

mongosh メソッド

This page documents a mongosh method. This is not the documentation for database commands or language-specific drivers, such as Node.js.

データベースコマンドについては、abortReshardCollection コマンドを参照してください。

MongoDB API ドライバーについては、各言語の「MongoDB ドライバーのドキュメント」を参照してください。

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

  • MongoDB Atlas はクラウドでの MongoDB 配置のための完全管理サービスです

重要

このコマンドは、M0 および Flex クラスターではサポートされていません。詳細については、サポートされていないコマンド を参照してください。

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

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

The sh.abortReshardCollection() method has the following syntax:

sh.abortReshardCollection( <namespace> )

The sh.abortReshardCollection() method takes the following parameter:

Parameter
タイプ
説明

文字列

"<database>.<collection>"形式でのシャーディングするコレクションの名前。

次の例えでは、 sales.ordersコレクションで実行中の再シャーディング操作を中止します。

sh.abortReshardCollection("sales.orders")
このページを評価