-
Notifications
You must be signed in to change notification settings - Fork 616
[client-v2, jdbc-v2] queryID auto-generation #2673
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
Conversation
|
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update or ping for review. Thank you for your contributions! |
Client V2 CoverageCoverage Report
Class Coverage
|
JDBC V2 CoverageCoverage Report
Class Coverage
|
JDBC V1 CoverageCoverage Report
Class Coverage
|
Client V1 CoverageCoverage Report
Class Coverage
|
jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcConfiguration.java
Outdated
Show resolved
Hide resolved
client-v2/src/main/java/com/clickhouse/client/api/internal/HttpAPIClientHelper.java
Show resolved
Hide resolved
… another test for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
|


Summary
queryIdto exception so it is easier to match fail on client and serverServerExceptioncode and query ID are propagated toSQLExceptioncom.clickhouse.jdbc.DriverProperties#QUERY_ID_GENERATORto let set ID generator from JDBC.Closes #2642
Checklist
Delete items not relevant to your PR:
Note
Introduces query ID auto-generation and end-to-end propagation for tracing requests and failures.
Builder.setQueryIdGenerator(Supplier<String>)and auto-fillsqueryIdinQuerySettings/InsertSettingswhen missing; retry/error logs now includequeryIdClickHouseExceptionholdsqueryId;ServerExceptionnow includesqueryId, constructor updated, and commonErrorCodesenum added; HTTP helper extractsX-ClickHouse-Query-Idand injects into messages/wrapped exceptionsDriverProperties.QUERY_ID_GENERATOR;StatementImpl/WriterStatementImpluse generator and expose last query ID;JdbcConfigurationwires supplier from connection propertiesRecordsnow exposesgetQueryId(); minor copy edits andClientfields finalizedWritten by Cursor Bugbot for commit b226f33. This will update automatically on new commits. Configure here.