-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow adding external v1 sst file with no global seqno support #1874
Conversation
can we make it into next stable release? also feels like this fix can be something to the release note in case people have the same problem |
ping @siying @IslamAbdelRahman |
This does not look correct to me, we should never reach a point where we need to assign a global seqno with value != 0 when ingesting an external file with version = 1 The problem that we are trying to solve could be happening because when we get a V1 file we don't properly assign |
thanks, so the situation is:
|
@shuzhang1989 , What I meant is that we set the We set it when reading a V2 file, but we don't when reading V1 .. So I think we should fix that |
@IslamAbdelRahman, i wonder how the fix will be, because if version == 1, seqno_iter will be invalid, then what's the original_seqno to be set? |
@shuzhang1989, In the V1 case we can simply set it to 0 since it's guaranteed that a V1 file will always have sequence number 0
|
@shuzhang1989 updated the pull request - view changes |
@IslamAbdelRahman thanks, verified it works 👍 |
@IslamAbdelRahman has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Thanks @shuzhang1989 ! |
@IslamAbdelRahman thanks a ton for the instruction! |
This is a follow up fix for #1783. After it, we should be able to ingest external v1 sst files with no global seqno field.