Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Dec 5, 2025

Cherry-picked from #58574

…8574)

## Problem
JNI Global References may not be deleted when `JdbcConnector::close()`
fails
midway due to early returns from `RETURN_IF_ERROR` macros. This prevents
Java
GC from collecting `BaseJdbcExecutor` and its associated `ResultSet`
objects,
  causing old generation heap to grow to 99%+.

  ## Solution
- C++: Always delete all three Global References regardless of Java
close() failure
- Java: Always clear member variable references (`resultSet`, `stmt`,
`conn`) in finally block
@github-actions github-actions bot requested a review from yiguolei as a code owner December 5, 2025 06:04
@morningman
Copy link
Contributor

run buildall

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage `` 🎉
Increment coverage report
Complete coverage report

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 6.25% (2/32) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 53.18% (18351/34507)
Line Coverage 38.77% (168722/435213)
Region Coverage 33.51% (130424/389197)
Branch Coverage 34.44% (56292/163447)

@morningman morningman closed this Dec 5, 2025
@morningman morningman reopened this Dec 5, 2025
@yiguolei yiguolei merged commit ffb11fc into branch-4.0 Dec 11, 2025
23 of 25 checks passed
@github-actions github-actions bot deleted the auto-pick-58574-branch-4.0 branch December 11, 2025 11:02
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.

6 participants