[SERVER-82073] Fix merge chunk command generation in collection_defragmentation.js Created: 11/Oct/23  Updated: 22/Nov/23  Resolved: 20/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0, 7.2.0-rc2, 7.0.5, 6.0.13

Type: Bug Priority: Major - P3
Reporter: Allison Easton Assignee: Aitor Esteve Alvarado
Resolution: Fixed Votes: 0
Labels: car-qw
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Assigned Teams:
Catalog and Routing
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.2, v7.0, v6.0
Sprint: CAR Team 2023-11-13, CAR Team 2023-11-27
Participants:
Linked BF Score: 5
Story Points: 1

 Description   

As part of collection_defragmentation.js, we are looking for merge commands that can be issued. However, the loop to search for these commands is broken.

The index used to check for contiguous chunks is never incremented, and the check for the next chunk being on the same shard as the current one could go out of bounds if the index is set to chunks.length - 1.



 Comments   
Comment by Githook User [ 22/Nov/23 ]

Author:

{'name': 'Aitor Esteve Alvarado', 'email': 'aitor.esteve@mongodb.com', 'username': 'atesteve'}

Message: SERVER-82073 Fix merge chunk command generation in collection_defragmentation.js

(cherry picked from commit 2ad5342faca92bdee2bf92509c9f327978e18bdc)
Branch: v7.2
https://github.com/mongodb/mongo/commit/71a6143a0d8a37779afd322e50c98928bb5365b5

Comment by Githook User [ 22/Nov/23 ]

Author:

{'name': 'Aitor Esteve Alvarado', 'email': 'aitor.esteve@mongodb.com', 'username': 'atesteve'}

Message: SERVER-82073 Fix merge chunk command generation in collection_defragmentation.js

(cherry picked from commit 2ad5342faca92bdee2bf92509c9f327978e18bdc)
Branch: v6.0
https://github.com/mongodb/mongo/commit/1e7ef337a12dc8a42dbf9a41fffe2a42bd420c6f

Comment by Githook User [ 22/Nov/23 ]

Author:

{'name': 'Aitor Esteve Alvarado', 'email': 'aitor.esteve@mongodb.com', 'username': 'atesteve'}

Message: SERVER-82073 Fix merge chunk command generation in collection_defragmentation.js

(cherry picked from commit 2ad5342faca92bdee2bf92509c9f327978e18bdc)
Branch: v7.0
https://github.com/mongodb/mongo/commit/73e17a809eee2c7e520abc464ed3856b64b174e6

Comment by Githook User [ 16/Nov/23 ]

Author:

{'name': 'Aitor Esteve Alvarado', 'email': 'aitor.esteve@mongodb.com', 'username': 'atesteve'}

Message: SERVER-82073 Fix merge chunk command generation in collection_defragmentation.js
Branch: master
https://github.com/mongodb/mongo/commit/2ad5342faca92bdee2bf92509c9f327978e18bdc

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