[SERVER-78206] Ignore distributing unaccounted bytes if there are no markers Created: 19/Jun/23  Updated: 19/Jun/23  Resolved: 19/Jun/23

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

Type: Bug Priority: Major - P3
Reporter: Jordi Olivares Provencio Assignee: Haley Connelly
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-78024 PreImagesTruncateManager doesn't gate... Closed
Operating System: ALL
Participants:

 Description   

Truncate marker initialisation can act on a collection with invalid metrics (records and dataSize > 0) as the collection is empty.

In that case initialisation returns no markers and tries to distribute the leftover metrics across the markers by blindly taking the first one. As there are no markers, this can cause an invalid memory access.


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