IncorrectUsage error when batching update statements.
Issue
-
Under high load (upto 512 concurrent requests) in a web app,
postgres-wirekeeps running intoIncorrectUsage: "Expected DataRow message, but got ReadyForQuery"error for a batch of update statements. -
Issue does NOT manifest when the number of concurrent requests is low.
-
Related project and workaround I had to apply: https://github.com/TechEmpower/FrameworkBenchmarks/pull/4571/commits/a707305805e6085ed486072232998756e8d789a4#diff-18e221ebfc6aeb9c7554015904f0c042
Is this expected? Am I doing something wrong?
Thank you for the report! I will investigate this. Also, it will be really helpful if you have a code example that reproduces this issue.
@NCrashed Created a sample project that focuses and reproduces this issue: https://github.com/naushadh/postgres-wire-issue25
See out.log for test reproduction output.