gosonzhang opened a new issue, #6076: URL: https://github.com/apache/inlong/issues/6076
### What happened In the ClickHouseService.processOutput() function, there are several places that need to be optimized: 1. Obtaining a prepared statement object requires explicit release; 2. data needs to read batchQueue data inside the while loop; 3. After exiting the while loop, you need to judge whether there is still unwritten data, and then do the commit operation 1. https://github.com/apache/inlong/blob/master/inlong-audit/audit-store/src/main/java/org/apache/inlong/audit/service/ClickHouseService.java#L106  ### What you expected to happen fix bugs ### How to reproduce see code ### Environment Linux ### InLong version master ### InLong Component InLong Audit ### Are you willing to submit PR? - [X] Yes, I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
