Log error messages for network failures (#289)

We are seeing some Error reading message code from socket error messages, we want to get more context so this PR logs the actual error reported.
This commit is contained in:
Mostafa Abdelraouf
2023-01-19 05:18:08 -06:00
committed by GitHub
parent 99a3b9896d
commit 87a771aecc
2 changed files with 25 additions and 13 deletions

View File

@@ -93,7 +93,7 @@ describe "Least Outstanding Queries Load Balancing" do
threads = Array.new(slow_query_count) do
Thread.new do
conn = PG.connect(processes.pgcat.connection_string("sharded_db", "sharding_user"))
conn.async_exec("SELECT pg_sleep(1)")
conn.async_exec("BEGIN")
end
end