[SERVER-60662] Address bug spotted by RepositionLastSplitPointsTest Created: 13/Oct/21  Updated: 29/Oct/23  Resolved: 14/Oct/21

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

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: None
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
Participants:
Linked BF Score: 164

 Description   

The RepositionLastSplitPointsTest test is very "sensible" as it expect the auto splitter behaviour to be very precise.

It helped spotting the following bug that needs to be solved in order to avoid future failures: this strict gt comparison needs to be replaced by a >=, otherwise the generated chunks will always contain one key more than the expected size.

Moreover, the size of the string inserted in the generated documents should be changed to 1024^2 - 24 in order to obtain documents of exactly 1MB (contrary to the calculation done under SERVER-60463, that was done by relying on a wrong estimated data size).



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

Author:

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

Message: SERVER-60662 Address bug spotted by RepositionLastSplitPointsTest
Branch: v5.1
https://github.com/mongodb/mongo/commit/b9fcd34a121002207e124759f7fccc8e29e7a57e

Comment by Githook User [ 14/Oct/21 ]

Author:

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

Message: SERVER-60662 Address bug spotted by RepositionLastSplitPointsTest
Branch: master
https://github.com/mongodb/mongo/commit/43c192665c6d7526946216cbe8be3831b6ddeccd

Comment by Githook User [ 13/Oct/21 ]

Author:

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

Message: SERVER-60662 Temporarily disable RandomRepositioningTest
Branch: master
https://github.com/mongodb/mongo/commit/99050aa4ce30bf4207ddcacb61b7605252f963d4

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