[SERVER-36789] ShardServerOpObserver::onInserts should check if a chunk belongs to the shard before triggering a split Created: 21/Aug/18  Updated: 29/Oct/23  Resolved: 22/Aug/18

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

Type: Bug Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Matthew Saltz (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Right now, in the onInserts function in the shard op observer, we submit a chunk split task for any chunk in the ChunkManager. However, if the inserts are occurring due to a migration, the ChunkManager will contain the chunk, but that chunk will not belong to this shard yet, so we should not trigger a split.



 Comments   
Comment by Githook User [ 22/Aug/18 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-36789 ShardServerOpObserver::onInserts should check if a chunk belongs to the shard before triggering a split
Branch: master
https://github.com/mongodb/mongo/commit/0f0436f7f17fab66910efb85c390a407f859f308

Generated at Thu Feb 08 04:44:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.