Commit b7393c6
Manav Kumar
[#30411] YSQL: Fix TestReserveYsqlInternalConns test on running with conn mgr
Summary: This diff fixes `org.yb.ysqlconnmgr.TestReserveYsqlInternalConns` when ran with `--enable-ysql-conn-mgr-test` flag. Before running the test, internal set-up creates physical connection to default user/db (yugabyte/yugabyte). Therefore on running the test for different pool, it reduces number of available backends from total `ysql_max_connections`. This diff overrides `verifyClusterAcceptsPGConnections` function to create internal set-up connections to PG so they get successfully closed.
Test Plan:
Jenkins: enable connection manager, test regex: .*ReserveYsqlInternalConns.*
Make sure test passes with conn mgr flag:
`./yb_build.sh --enable-ysql-conn-mgr-test --java-test org.yb.ysqlconnmgr.TestReserveYsqlInternalConns`
Reviewers: skumar, arpit.saxena
Reviewed By: arpit.saxena
Subscribers: yql
Differential Revision: https://phorge.dev.yugabyte.com/D506871 parent 9593905 commit b7393c6
File tree
1 file changed
+20
-0
lines changed- java/yb-ysql-conn-mgr/src/test/java/org/yb/ysqlconnmgr
1 file changed
+20
-0
lines changedLines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
62 | 82 | | |
63 | 83 | | |
64 | 84 | | |
| |||
0 commit comments