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
HIVE-21213: Acid table bootstrap replication needs to handle director… #4631
Conversation
0975d5d
to
3474153
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the test failures?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix test failures.
3474153
to
24fe805
Compare
…y created by compaction with txn id
24fe805
to
bf5521d
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.8) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
LGTM +1. |
…y created by compaction with txn id (apache#4631) (Rakshith C, reviewed by Teddy Choi)
What changes were proposed in this pull request?
Stripping visibility prefix of compacted files when bootstrap replication is done.
Why are the changes needed?
When REPL DUMP is issued against a database whose tables have undergone major compaction, base_xxx_vxxx files are copied onto replica without stripping vxxx.
The file may not be visible on target because the current transaction ID may be much lesser than vxxx.
Since REPL DUMP opens a read-only transaction, if base_xxxx_vxxx was visible to REPL_DUMP on source, it has to be made visible on target as well.
Does this PR introduce any user-facing change?
No
Is the change a dependency upgrade?
No
How was this patch tested?