You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2022/09/30 07:26:34 UTC

[GitHub] [inlong] gosonzhang opened a new issue, #6076: [Bug][Audit] Bugs in the ClickHouseService.processOutput() function

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
   ![企业微信截图_16645225199676](https://user-images.githubusercontent.com/14038849/193214120-7fca6f49-464b-4e7b-84f7-b65f41835c8c.png)
   
   
   ### 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: dev-unsubscribe@inlong.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong] dockerzhang closed issue #6076: [Bug][Audit] Bugs in the ClickHouseService.processOutput()

Posted by GitBox <gi...@apache.org>.
dockerzhang closed issue #6076: [Bug][Audit] Bugs in the ClickHouseService.processOutput()
URL: https://github.com/apache/inlong/issues/6076


-- 
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: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org