[SERVER-11701] Allow user to force moveChunk of chunks larger than the 25000 byte limit Created: 14/Nov/13  Updated: 19/Dec/17  Resolved: 19/Dec/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.4.2
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: ning Assignee: Randolph Tan
Resolution: Done Votes: 3
Labels: ChunkMigrationRefactor
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-19919 Chunks that exceed 250000 docs but ar... Closed
Participants:

 Description   

we got 'chunkTooBig' on removeShard progress

we want to moveChunk force.
can we add a param 'force' for it.



 Comments   
Comment by Randolph Tan [ 19/Dec/17 ]

Document limit was removed, making this unnecessary

Comment by ning [ 17/Nov/13 ]

the title should be : 'allow force moveChunk beyond 25000 limit', by this code:

     if ( totalRecs > 0 ) {
         avgRecSize = d->stats.datasize / totalRecs;
         maxRecsWhenFull = maxChunkSize / avgRecSize;
         // remove this limit: 
         //maxRecsWhenFull = std::min( (unsigned long long)(Chunk::MaxObjectPerChunk + 1) , 130 * maxRecsWhenFull / 100 /* slack */ );
     } 

Generated at Thu Feb 08 03:26:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.