Skip to content

Conversation

deniskuzZ
Copy link
Member

@deniskuzZ deniskuzZ commented Oct 7, 2025

What changes were proposed in this pull request?

Use thread-local HiveConf objects

Why are the changes needed?

  • fixes race condition
  • adds caching for openTxns and validWriteIds

Does this PR introduce any user-facing change?

No

How was this patch tested?

locally with multiple threads

// increase the size of the configuration or the number of failed compactions.
Assert.assertTrue("Allocated memory, " + diffMem + "bytes , exceeds acceptable variance of 250MB.",
diffMem < 250_000_000);
diffMem < 450_000_000);
Copy link
Member Author

Choose a reason for hiding this comment

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

increase because of thread-local use in a cleaner task thread

Copy link

sonarqubecloud bot commented Oct 9, 2025

Copy link
Contributor

@SourabhBadhya SourabhBadhya left a comment

Choose a reason for hiding this comment

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

LGTM +1

@deniskuzZ deniskuzZ merged commit 2fa252a into apache:master Oct 13, 2025
2 checks passed
@deniskuzZ deniskuzZ changed the title HIVE-29251: Hive ACID: HiveConf object shouldn't be shared between multiple cleanup tasks HIVE-29251: Hive ACID: HiveConf object shouldn't be shared between multiple cleanup task threads Oct 13, 2025
@deniskuzZ deniskuzZ deleted the HIVE-29251 branch October 13, 2025 08:29
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