Skip to content

HIVE-27848 - TestCrudCompactorOnTez.secondCompactionShouldBeRefusedBe…#4859

Closed
tarak271 wants to merge 13 commits intoapache:masterfrom
tarak271:tarak-HIVE-27848
Closed

HIVE-27848 - TestCrudCompactorOnTez.secondCompactionShouldBeRefusedBe…#4859
tarak271 wants to merge 13 commits intoapache:masterfrom
tarak271:tarak-HIVE-27848

Conversation

@tarak271
Copy link
Copy Markdown
Contributor

@tarak271 tarak271 commented Nov 7, 2023

…foreEnqueueing fails

What changes were proposed in this pull request?

Change error message thrown when compaction is not successfully initiated

Why are the changes needed?

Regression of enhancement https://issues.apache.org/jira/browse/HIVE-27598

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

Junit tests

Copy link
Copy Markdown
Member

@zabetak zabetak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we remove the @Ignore annotation from
org.apache.hadoop.hive.ql.txn.compactor.TestCrudCompactorOnTez#secondCompactionShouldBeRefusedBeforeEnqueueing to ensure that the changes in this PR fix the problem?

@tarak271
Copy link
Copy Markdown
Contributor Author

tarak271 commented Nov 9, 2023

@zabetak removed @ignore annotation, please help review & merge

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Dec 4, 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 3 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

@tarak271 tarak271 requested a review from zabetak December 19, 2023 12:08
@tarak271
Copy link
Copy Markdown
Contributor Author

@zabetak could you please help guide me, on the next steps with this pull request

@zabetak
Copy link
Copy Markdown
Member

zabetak commented Feb 1, 2024

Hey @tarak271 apologies for the delay. I think all the comments are addressed so I have to do a careful review of the refactoring to ensure that nothing broke and we should be good to merge this. I see that there are some merge conflicts in the InitiatorBase so if you can resolve these as well that would be helpful.

Copy link
Copy Markdown
Member

@zabetak zabetak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few additional comments for the last refactoring. Please also check the test failures cause they seem kinda of related

Copy link
Copy Markdown
Member

@zabetak zabetak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some clarifications are still needed for the usage of validTxnList. The other comments are a bunch of nits that I would treat myself if it was just those.

import org.apache.hadoop.hive.metastore.api.GetValidWriteIdsRequest;
import org.apache.hadoop.hive.metastore.api.NoSuchTxnException;


Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Is there a style guideline that mandates multiple spaces in imports? I don't understand with what criterion they are separated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatter did not do it automatically. seems like my mistake

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
19 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Copy Markdown
Member

@zabetak zabetak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I will merge this soon.

Many thanks for your persistence and bearing through this long round of reviews.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants