Skip to content

Commit eed4122

Browse files
committed
Fix querysession pool autoresize
1 parent ed0e695 commit eed4122

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jdbc/src/main/java/tech/ydb/jdbc/context/YdbContext.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ public void register() {
219219
int newSize = maxSize + SESSION_POOL_RESIZE_STEP;
220220
if (maxSize == tableClient.sessionPoolStats().getMaxSize()) {
221221
tableClient.updatePoolMaxSize(newSize);
222+
queryClient.updatePoolMaxSize(newSize);
222223
}
223224
}
224225
}
@@ -231,6 +232,7 @@ public void deregister() {
231232
int newSize = maxSize - SESSION_POOL_RESIZE_STEP;
232233
if (maxSize == tableClient.sessionPoolStats().getMaxSize()) {
233234
tableClient.updatePoolMaxSize(newSize);
235+
queryClient.updatePoolMaxSize(newSize);
234236
}
235237
}
236238
}

0 commit comments

Comments
 (0)