zy-kkk opened a new pull request, #58574:
URL: https://github.com/apache/doris/pull/58574

     ## 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to