You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Tracks the number of consecutive resize cycles where a resize actually occurred (either expand or shrink).
88
92
// Used to detect repeated resizing activity and log a warning.
89
93
privateintconsecutiveResizes = 0;
@@ -331,7 +335,7 @@ void resize() {
331
335
consecutiveResizes = 0;
332
336
}
333
337
334
-
if (consecutiveResizes == 5) {
338
+
if (consecutiveResizes == CONSECUTIVE_RESIZE_THRESHOLD) {
335
339
LOG.warning(
336
340
"Channel pool is repeatedly resizing. Consider adjusting `initialChannelCount` or `maxResizeDelta` to a more reasonable value. "
337
341
+ "See https://docs.cloud.google.com/java/docs/troubleshooting to enable logging and set `com.google.api.gax.grpc.ChannelPool.level=FINEST` to log the channel pool resize behavior.");
0 commit comments