We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de28aef commit 827b22dCopy full SHA for 827b22d
sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/ChannelPool.java
@@ -338,6 +338,8 @@ void resize() {
338
consecutiveResizes = 0;
339
}
340
341
+ // Log warning only once when the threshold is reached to avoid spamming logs.
342
+ // Using == instead of >= ensures we don't log on every subsequent resize cycle.
343
if (consecutiveResizes == CONSECUTIVE_RESIZE_THRESHOLD) {
344
LOG.warning(
345
"Channel pool is repeatedly resizing. Consider adjusting `initialChannelCount` or `maxResizeDelta` to a more reasonable value. "
0 commit comments