mongo分片备份后删除分片并重建分片索引,结果常遇到以下情况:
shard01上的集合创建了分片索引,而shard02上却没有创建分片索引,导致chunk只分布在shard01分片上。
具体报错信息:
"errmsg" : "aborting migration, shard is missing 1 indexes and collection is not empty. Non-trivial index creation should be scheduled manually"
后来在未成功创建分片索引的shard02手工创建分片索引后chunk开始迁移。但具体问题原因还需再查下。
时间: 2024-12-29 01:03:23