You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dead loop with kSkipAnyCorruptedRecords mode selected in some cases #11968
And before this corrupted block, a partial record exists
Thus the reproduction prodecure is:
When reading previous block, a partial record exists, so in_fragmented_record_ marked as true
This corrupted block read as kRecyclableMiddleType, sequence number 0x1b4577fc, which is less than expected sequence number, so returned as kOldRecord, while buffer prefix not removed
Since kSkipAnyCorruptedRecords mode selected and in_fragmented_record_ marked as true, a corruption log printed and in_fragmented_record_ flag cleared
Continue to ReadPhysicalRecord with the same offset, kOldRecord returned again
Since in_fragmented_record_ set to false, no more log printed, and thread fall into infinite loop
changed the title [-]Potential dead loop with kSkipAnyCorruptedRecords mode selected[/-][+]Dead loop with kSkipAnyCorruptedRecords mode selected in some cases[/+]on Oct 19, 2023
Activity
qiuchengxuan commentedon Oct 17, 2023
Seems affect from 6.15.5 to 6.29.5
[-]Potential dead loop with kSkipAnyCorruptedRecords mode selected[/-][+]Dead loop with kSkipAnyCorruptedRecords mode selected in some cases[/+]qiuchengxuan commentedon Oct 30, 2023
Fixed by #11979