Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A validator-passing standby import failed with a ClickHouse JDBC
SocketTimeoutException: Connect timed outduringConnection.prepareStatement/ clinical-attribute metadata lookup. We need to distinguish pool acquisition, preparation and execution failures without enabling global SQL/HTTP debug logging or changing retry behavior.Changes
-Dcbio.jdbc.diagnostics=trueat the sharedJdbcUtilconnection boundary; default returns the original connection unchanged.docs/jdbc-diagnostics.md.Validation
mvn packagesucceeds, 111 tests pass, including 10 new diagnostics tests.core-1.0.16.jarbuilt locally; no database credentials or live DB needed for tests.git diff --checkpasses.Deliberate limits / draft status
This is an initial diagnostic layer, not a diagnosis or timeout fix. Host is configured, not the actual resolved/socket IP. URL timeouts are not claimed as effective driver defaults. Physical connection attempts, driver-internal retries, server query IDs, ResultSet iteration and vendor APIs reached via unwrap are not traced. Study/phase comes from surrounding importer logs. Existing application/driver logging is unchanged and may independently expose sensitive content: whole logs still need access controls.
No dependencies, timeouts, SQL or retry policy changed. This standalone PR is based on main and is separate from validator PR #183. No rollout image has been changed and no import rerun performed. Draft pending review and a controlled diagnostic-image reproduction; any rollout image must retain the separately validated validator changes.