Skip to content

[1.3] Fix JDBC test cleanup and Pipe metadata request timeouts - #19193

Merged
Caideyipi merged 2 commits into
dev/1.3from
codex/cp-c5f57e9-dev13
Nov 10, 2026
Merged

Caideyipi merged 2 commits into
dev/1.3from
codex/cp-c5f57e9-dev13

Conversation

@Caideyipi

@Caideyipi Caideyipi commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Backport the applicable changes from #19160 (c5f57e9) onto dev/1.3 at 8f589d4, and fix the metadata RPC deadline race exposed by the Pipe diagnostics tests.

Non-query test helpers close statements and internally created connections on success and failure while preserving caller-owned connections. The Pipe diagnostics tests wait for the asynchronous leader-change procedure and its coordinator lock before issuing DROP, and verify that DROP creates a new connection attempt.

Single-pipe metadata RPCs now temporarily use the configured metadata request timeout. Previously, their default DataNode RPC timeout matched the procedure wait timeout: DROP could return a timeout and immediately finish in the background, removing the pipe before the concurrent-operation or restart-recovery assertions. The pooled client restores its original timeout when returned. The existing diagnostic, PRE_DELETE, concurrent-operation, recovery, and eventual-deletion assertions are unchanged.

Compatibility adaptations:

  • Keep the existing dev/1.3 retry helper, which already uses try-with-resources. Adapt its cleanup regression scenarios to the existing four-argument API; there is no borrowed-connection retry overload on this branch.
  • Match the existing dev/1.3 leader-change log marker and retain the tree-model test categories.
  • Intentionally omit the rejected-submission stubbing hunk: this branch lacks the corresponding regression test and prerequisite rollback behavior from Fix pipe task start failures: report, roll back and recover #19119. No prerequisite product changes are included.

Validation

  • Spotless passed with the integration-test profile enabled.
  • Built the matching TsFile dependency from source. A clean ClusterIT reactor rebuilt the required IoTDB dependency closure and executed all 713 goals without build-output cache reuse.
  • Both tests in IoTDBPipeOperationDiagnosticsIT passed on JDK 17 with with-integration-tests,ClusterIT: 2 tests, 0 failures, 0 errors, 0 skips.
  • The resource-cleanup regression tests previously passed under both SimpleIT and ClusterIT.
  • The online dependency vulnerability audit was skipped after the external service stalled; compilation and the focused integration tests completed successfully.

* Stub rejected submissions before registering pipe subtasks

* Fix JDBC resource cleanup in non-query test utilities

* Stabilize pipe operation diagnostics IT barriers

(cherry picked from commit c5f57e9)
@Caideyipi Caideyipi changed the title [1.3] Fix JDBC test cleanup and Pipe diagnostics IT barriers [1.3] Fix JDBC test cleanup and Pipe metadata request timeouts Nov 10, 2026
@sonarqubecloud

Copy link
Copy Markdown

@Caideyipi
Caideyipi merged commit f1e915a into dev/1.3 Nov 10, 2026
17 of 18 checks passed
@Caideyipi
Caideyipi deleted the codex/cp-c5f57e9-dev13 branch November 10, 2026 09:46
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.

1 participant