버전 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" })