Skip to content

Conversation

@SourabhBadhya
Copy link
Contributor

What changes were proposed in this pull request?

Add retry backoff mechanism for abort cleanup

Why are the changes needed?

To add retry backoff mechanism for abort cleanup

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit tests

@SourabhBadhya SourabhBadhya changed the title [DRAFT] HIVE-27332: Add retry backoff mechanism for abort cleanup HIVE-27332: Add retry backoff mechanism for abort cleanup May 13, 2023
try {
dbConn = getDbConn(Connection.TRANSACTION_READ_COMMITTED, connPoolCompaction);
if (!isAbortOnly) {
if (!info.isAbortedTxnCleanup()) {
Copy link
Member

Choose a reason for hiding this comment

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

we no longer generate completed_compactions entries for the aborts, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we no longer generate completed_compactions entries.

Copy link
Member

Choose a reason for hiding this comment

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

previously in case of unexpected situation, we were able to figure out the affected tables from the DB, now we'll have to grep the logs. should be fine, right?

Copy link
Contributor Author

@SourabhBadhya SourabhBadhya Jun 8, 2023

Choose a reason for hiding this comment

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

@deniskuzZ I think so. The logs should be fine here.
Also the logs will be under a separate class - AbortedTxnCleaner. So grepping this, should provide most information regarding what AbortedTxnCleaner does.

Copy link
Member

@deniskuzZ deniskuzZ left a comment

Choose a reason for hiding this comment

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

@SourabhBadhya looks great! thanks, just 2 minor comments

Copy link
Member

@deniskuzZ deniskuzZ left a comment

Choose a reason for hiding this comment

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

+1 great job!!! pending tests

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug B 1 Bug
Vulnerability B 5 Vulnerabilities
Security Hotspot E 2 Security Hotspots
Code Smell A 118 Code Smells

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

@veghlaci05 veghlaci05 merged commit b4d1c04 into apache:master Jun 9, 2023
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.

4 participants