Skip to content

[Bug] Backport JDBC edge cases and resource cleanup to dev/1.3 - #19306

Open
Caideyipi wants to merge 3 commits into
apache:dev/1.3from
Caideyipi:backport/19257-dev-1.3
Open

Caideyipi wants to merge 3 commits into
apache:dev/1.3from
Caideyipi:backport/19257-dev-1.3

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Backports Apache IoTDB commit 720da6c1a15c6c4a83d1234b8f4f1bb96aae3c0e (PR #19257) to dev/1.3.

  • Includes tree-model and generic JDBC changes, adapted to the 1.3 APIs and conventions.
  • Omits the table-model JDBC implementation and four relational integration tests, which are absent from dev/1.3.

Validation performed locally with Windows 11, JDK 17.0.15, Maven 3.8.8:

  • Full reactor clean test-compile -P with-integration-tests passed in English and Chinese locales.
  • JDBC and service-rpc unit tests: 152 passed.
  • IoTDBSimpleQueryIT under SimpleIT: 32 passed, 2 skipped.
  • Changed tests under ClusterIT: 2 passed (IoTDBFilterIT#testFilterWithUDTF, IoTDBSimpleQueryIT#testUseSameStatement).

* Fix JDBC URL parsing defaults

* Handle null JDBC data source properties

(cherry picked from commit d49e183)

* Improve JDBC URL parameter parsing

(cherry picked from commit dfcd589)

* Validate JDBC URL query parameters

(cherry picked from commit 11be88c)

* Fix JDBC edge case handling

(cherry picked from commit bc18c42)

* Improve JDBC DataSource standard behavior

* Improve JDBC standard interface behavior

* Fix JDBC URL and DataSource edge cases

* Improve JDBC result set edge cases

* Fix JDBC parameter and result set edge cases

* Fix JDBC statement and metadata edge cases

* Reject JDBC operations after close

* Reject closed JDBC wrapper and result set operations

* Reject closed JDBC connection operations

* Reject more closed JDBC connection entry points

* Reject closed JDBC unsupported operations

* Reject additional closed JDBC entry points

* Fix JDBC metadata result set lifecycle

* Fix JDBC resource lifecycle cleanup

(cherry picked from commit 164931f)

* Fix JDBC query cleanup and login timeout behavior

* JDBC IT Fix

(cherry picked from commit 49f8b0b)

* Fix closed ResultSet in load tsfile IT

(cherry picked from commit b7abc79)

* Fix filter IT result set lifecycle

(cherry picked from commit 28ac6f0)

* Test null JDBC URL acceptance

* Keep existing JDBC URL prefix name

* Fix JDBC extraction compilation and tests

* Fix client-side prepared queries and JDBC URL validation

* Fix quoted identifiers in JDBC parameter scan

* Fix JDBC BigDecimal scale conversion

(cherry picked from commit 720da6c)
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