[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: |
|
||||||||
| 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: (cherry picked from commit 2ad5342faca92bdee2bf92509c9f327978e18bdc) |
| Comment by Githook User [ 22/Nov/23 ] |
|
Author: {'name': 'Aitor Esteve Alvarado', 'email': 'aitor.esteve@mongodb.com', 'username': 'atesteve'}Message: (cherry picked from commit 2ad5342faca92bdee2bf92509c9f327978e18bdc) |
| Comment by Githook User [ 22/Nov/23 ] |
|
Author: {'name': 'Aitor Esteve Alvarado', 'email': 'aitor.esteve@mongodb.com', 'username': 'atesteve'}Message: (cherry picked from commit 2ad5342faca92bdee2bf92509c9f327978e18bdc) |
| Comment by Githook User [ 16/Nov/23 ] |
|
Author: {'name': 'Aitor Esteve Alvarado', 'email': 'aitor.esteve@mongodb.com', 'username': 'atesteve'}Message: |