benchbase icon indicating copy to clipboard operation
benchbase copied to clipboard

Detect closed connections and automatically attempt to reconnect them.

Open lmwnshn opened this issue 3 years ago • 0 comments

The Worker creates a connection here in its constructor.

However, if the connection is closed by the DBMS (e.g., hammer a CPU-limited PostgreSQL read replica with reads to the point of replication replay being blocked), the Worker does not recover and tries to execute on the closed connection.

We would like the closed connection to be reopened. Maybe add a setting for whether this behavior should happen.

lmwnshn avatar Sep 16 '21 18:09 lmwnshn