HIVE-27848 - TestCrudCompactorOnTez.secondCompactionShouldBeRefusedBe…#4859
HIVE-27848 - TestCrudCompactorOnTez.secondCompactionShouldBeRefusedBe…#4859tarak271 wants to merge 13 commits intoapache:masterfrom
Conversation
zabetak
left a comment
There was a problem hiding this comment.
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?
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/compact/AlterTableCompactOperation.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/compact/AlterTableCompactOperation.java
Outdated
Show resolved
Hide resolved
|
Kudos, SonarCloud Quality Gate passed!
|
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/compact/AlterTableCompactOperation.java
Outdated
Show resolved
Hide resolved
|
@zabetak could you please help guide me, on the next steps with this pull request |
|
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. |
zabetak
left a comment
There was a problem hiding this comment.
Left a few additional comments for the last refactoring. Please also check the test failures cause they seem kinda of related
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/compact/AlterTableCompactOperation.java
Outdated
Show resolved
Hide resolved
zabetak
left a comment
There was a problem hiding this comment.
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.
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
Outdated
Show resolved
Hide resolved
| import org.apache.hadoop.hive.metastore.api.GetValidWriteIdsRequest; | ||
| import org.apache.hadoop.hive.metastore.api.NoSuchTxnException; | ||
|
|
||
|
|
There was a problem hiding this comment.
nit: Is there a style guideline that mandates multiple spaces in imports? I don't understand with what criterion they are separated.
There was a problem hiding this comment.
formatter did not do it automatically. seems like my mistake
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/compact/AlterTableCompactOperation.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/compact/AlterTableCompactOperation.java
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/compact/AlterTableCompactOperation.java
Show resolved
Hide resolved
…foreEnqueueing fails
…foreEnqueueing fails
…foreEnqueueing fails
…foreEnqueueing fails
…foreEnqueueing fails
…foreEnqueueing fails
…foreEnqueueing fails
…foreEnqueueing fails
…foreEnqueueing fails
…foreEnqueueing fails
…foreEnqueueing fails
…foreEnqueueing fails
…foreEnqueueing fails
|
zabetak
left a comment
There was a problem hiding this comment.
LGTM! I will merge this soon.
Many thanks for your persistence and bearing through this long round of reviews.













…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