New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LoggerListener logs some batch queries twice, when using BatchMultiple #15250
Projects
Milestone
Comments
Thanks a lot for your report. I will investigate this more in detail, soon. |
I can reproduce this with the following two respective call stacks:
And
I think something around the (very old) fixes below is now obsolete:
Since individual statements are already logged, we don't need to log the entire batch anymore. |
lukaseder
changed the title
Duplicated logging output during batch queries
LoggerListener logs some batch queries twice, when using BatchMultiple
Jun 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
JOOQ displays the logging output only once for each insert during batch queries
Actual behavior
This sample code will result in receiving duplicated logging output of inserts:
Output:
The logging output is duplicated because of LoggerListener code:
During the table
batchSql[]
population, this condition is met:and later, when the table is full, this:
resulting in the duplication of the logging output
Steps to reproduce the problem
As mentioned above in the example
jOOQ Version
3.18.4
Database product and version
PostgreSQL 11.15
Java Version
openjdk 17
OS Version
Windows
JDBC driver name and version (include name if unofficial driver)
org.postgresql.postgresql:42.6.0
The text was updated successfully, but these errors were encountered: