Priority: Major - P3
Affects Version/s: None
Fix Version/s: None
why ist the MaxObjectPerChunk hard coded in line: https://github.com/mongodb/mongo/blob/master/src/mongo/s/chunk.cpp#L54?
We want to move a chunk to a other shard, but the move chunk command will be aborted because "chunk too big to move".
I found that in line: https://github.com/mongodb/mongo/blob/master/src/mongo/s/d_migrate.cpp#L408 the calculated maxRecsWhenFull will be reseted to the hard coded MaxObjectPerChunk limit if its greater.
Our configured chunk size is 64mb and the chunk has a size of ~32mb, so it should be moved without problems.
Why this limit?
I added to the failed response some values to validate this and here is the output:
So a chunk with over 250000 entries can't be moved? IMHO it's not expacted or? We think for that reason is our cluster not good distributed. We have many abort logs in the config.changelog.
Thanks & Regards