정의
abortReshardCollection버전 5.0의 신규 항목입니다.
During a resharding operation, you can abort the operation with the
abortReshardCollectioncommand.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
abortReshardCollectioncommand, the command returns an error.팁
In
mongosh, this command can also be run through thesh.abortReshardCollection()helper method.Helper methods are convenient for
mongoshusers, but they may not return the same level of information as database commands. In cases where the convenience is not needed or the additional return fields are required, use the database command.
호환성
이 명령은 다음 환경에서 호스팅되는 배포에서 사용할 수 있습니다.
- 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( { abortReshardCollection: "<database>.<collection>" } )
예시
리샤딩 작업 중단
다음 예시에서는 sales.orders 컬렉션에서 실행 중인 리샤딩 작업 을 중단합니다.
db.adminCommand({ abortReshardCollection: "sales.orders" })