정의
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: 클라우드에서의 MongoDB 배포를 위한 완전 관리형 서비스
참고
이 명령은 모든 MongoDB Atlas 클러스터에서 지원됩니다. 모든 명령에 대한 Atlas 지원에 관해 자세히 알아보려면 지원되지 않는 명령을 참조하세요.
MongoDB Enterprise: MongoDB의 구독 기반 자체 관리 버전
MongoDB Community: MongoDB의 소스 사용 가능 무료 자체 관리 버전
구문
명령은 다음과 같은 구문을 가집니다:
db.adminCommand( { abortReshardCollection: "<database>.<collection>" } )
예시
리샤딩 작업 중단
다음 예시에서는 sales.orders 컬렉션에서 실행 중인 리샤딩 작업 을 중단합니다.
db.adminCommand({ abortReshardCollection: "sales.orders" })