Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jdbc] Use credentials for health checking in ClickHouseNodes #2036

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

burov4j
Copy link

@burov4j burov4j commented Dec 19, 2024

Summary

Health check uses credentials from the class ClickHouseNode here: https://github.com/ClickHouse/clickhouse-java/blob/main/clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseNodes.java#L587

But if ClickHouseNode was created using the function ClickHouseNodes.of, then ClickHouseNode contains default credentials and health check doesn't work. Currently there is no way to pass any valid credentials to ClickHouseNodes.

This PR extends the function ClickHouseNodes.of with the new input parameter ClickHouseCredentials. It's possible that this issue has the same cause: #1384

@CLAassistant
Copy link

CLAassistant commented Dec 19, 2024

CLA assistant check
All committers have signed the CLA.

@chernser chernser changed the title Use credentials for health checking in ClickHouseNodes [jdbc] Use credentials for health checking in ClickHouseNodes Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants