CECTC/dbpack

bug: invalid Sequence, expected 1 got 22 (errno 2013) (sqlstate HY000)

dk-lockdown opened this issue · 2 comments

To Reproduce
Run sharding integration tests

Screenshots
image

This exception occurs because the connection that executes the sql request is returned to the connection pool before the request result is read, and this error occurs when other requests use this connection to initiate requests.

Why gave up on lazy reads? Because after the query result is returned, there are still filters that need to be executed. If the filter execution fails, the buffer on the connection needs to be drained, which is too troublesome.