Failed to delete Mongo Shard collection

Source: Internet
Author: User

After you stop balancer, back up the entire Shard library, and then enable balancer to delete the Shard set merge rebuild. Encountered the following error:

Mongos> Db.businessInfo.drop ();
2016-08-14t09:06:58.324+0800 E QUERY Error:drop failed: {
"Code": 13331,
"OK": 0,
"ErrMsg": "Exception:collection ' s metadata is undergoing changes. Please try again. "
}
At Error (<anonymous>)
At Dbcollection.drop (src/mongo/shell/collection.js:620:15)
at (Shell): 1:12 at src/mongo/shell/collection.js:620



After a bit of logic, you should drop sharding collection before enabling balancer.


This article is from the "strive to the front" blog, please be sure to keep this source http://liucb.blog.51cto.com/3230681/1837811

Failed to delete Mongo Shard collection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.