Skip to content
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

Merged
merged 1 commit into from Sep 1, 2023

Conversation

Rakshith606
Copy link
Contributor

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?

Copy link
Contributor

@pudidic pudidic left a 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?

Copy link
Contributor

@pudidic pudidic left a 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.

@sonarcloud
Copy link

sonarcloud bot commented Aug 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

warning 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.
Read more here

@pudidic
Copy link
Contributor

pudidic commented Sep 1, 2023

LGTM +1.

@pudidic pudidic merged commit e84f792 into apache:master Sep 1, 2023
5 checks passed
@Rakshith606 Rakshith606 deleted the HIVE-21213 branch September 6, 2023 04:50
tarak271 pushed a commit to tarak271/hive-1 that referenced this pull request Dec 19, 2023
…y created by compaction with txn id (apache#4631) (Rakshith C, reviewed by Teddy Choi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants