Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#23218] YSQL: Closing the backend connection on receiving the error …
…"Database might have been dropped by another user" Summary: This diff fixes one of the test `org.yb.pgsql.TestPgDropDatabase#testRecreateDatabase` failing with ysql connection manager. **Reason for the test failure** For errors like "Database might have been dropped by another user", ysql connection manager throws the FATAL packet without detaching or closing the backend process before closing the client connection. Due to which an assert failure happened while removing the client connection from the pool which leads to crash and restart of ysql connection manager process. Therefore all the pre existed logical connection present crash also starts failing. **Fix** After connection manager receives an error message "Database might have been dropped by another user" from postgres, a ERROR packet is sent to client instead of FATAL (in order to mimic same behaviour as without connection manager) and corresponding logical and physical connections are closed. Test Plan: Jenkins: all tests, enable connection manager Ensure below test runs successfully with ysql connection manager: `./yb_build.sh --enable-ysql-conn-mgr-test --java-test org.yb.pgsql.TestPgDropDatabase#testRecreateDatabase` Reviewers: asrinivasan, nkumar, skumar Reviewed By: asrinivasan Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D36461
- Loading branch information