[SERVER-59882] Autosplit tests may get one less chunk due to wuow commit delay Created: 10/Sep/21  Updated: 29/Oct/23  Resolved: 20/Oct/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 5.1.0
Fix Version/s: 5.2.0, 5.1.0-rc2

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: PM-2321-Chunk-Splitter
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.1
Sprint: Sharding EMEA 2021-11-01
Participants:
Linked BF Score: 157

 Description   

Reasons:

  1. With the new splitter algorithm (SERVER-55028 + SERVER-60009) it must not be possible to end up with more chunks than expected.
  2. The chunk splitter task is spawned by the sharding observer before the actual commit of the WriteUnitOfWork of the insert operation that is being observed. So it is actually possible for the last splitting round to be a no-op if the insert has not committed yet at the time of index scanning (intermediate split rounds could fail as well but subsequent ones would catch-up the missing splits).

Tests to change:



 Comments   
Comment by Githook User [ 21/Oct/21 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-59882 Autosplit tests may get one less chunk than expected due to wuow commit delay
Branch: v5.1
https://github.com/mongodb/mongo/commit/f9f9302a5254b6ec976228c5d8cdf70b39ef96eb

Comment by Githook User [ 20/Oct/21 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-59882 Autosplit tests may get one less chunk than expected due to wuow commit delay
Branch: master
https://github.com/mongodb/mongo/commit/80362db4494daa116f21e19c4c263621b897aead

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