Skip to content

HIVE-29513: Increase HikariCP connection timeout default from 30s to 60s#6381

Open
rtrivedi12 wants to merge 1 commit intoapache:masterfrom
rtrivedi12:HIVE-29513
Open

HIVE-29513: Increase HikariCP connection timeout default from 30s to 60s#6381
rtrivedi12 wants to merge 1 commit intoapache:masterfrom
rtrivedi12:HIVE-29513

Conversation

@rtrivedi12
Copy link
Contributor

What changes were proposed in this pull request?

Set HikariCP connection timeout to an explicit default of 60 seconds (60,000 ms) in HikariCPDataSourceProvider, making it configurable via hikaricp.connectionTimeout property.

Why are the changes needed?

MetaStore experiences connection timeout errors when database response is slow or during peak load, as HikariCP's implicit 30-second default is insufficient.

Does this PR introduce any user-facing change?

Yes. Connection timeout default changes from HikariCP's implicit 30 seconds to Hive's explicit 60 seconds. Users can override this by setting hikaricp.connectionTimeout in hive-site.xml.

How was this patch tested?

Added/updated unit tests in TestDataSourceProviderFactory:

@sonarqubecloud
Copy link

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.

2 participants