Skip to content

Conversation

@yungkei
Copy link

@yungkei yungkei commented Oct 27, 2025

[core] collect skipping sets from the left neighbor tag and the neare…

Purpose

Linked issue: close #6479 [Bug] There are code risks in tag expiration, which can cause data corruption

When a tag expires, the left neighbor tag and the nearest right neighbor tag will be collected in skipping sets to prevent the datafile from being mistakenly deleted. if baseManifestList of the nearest right neighbor tag does not exist, the relevant datafiles will be accidentally deleted. So, I suggest the skipping set can collect both the left neighbor tag and the nearest right neighbor tag, along with the earliest snapshot.

…st right neighbor (either the earliest snapshot and right neighbor tag) when tag cleanup
@yuzelin
Copy link
Contributor

yuzelin commented Oct 29, 2025

Hello, yungkei, thanks for your contribution~ I have a question, you said " if baseManifestList of the nearest right neighbor tag does not exist, the relevant datafiles will be accidentally deleted". I wonder in which case the baseManifestList of the nearest right neighbor tag does not exist? Can you give a more detailed case?

Please check

. If read failed, the clean will be stopped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants