From 947675527cc67d790d7b8ad5f3406bf326a30a11 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Fri, 24 Apr 2026 15:15:22 -0400 Subject: [PATCH] chore: Update the ChannelPool warning message to point to the Gax Channel Pool guide --- .../src/main/java/com/google/api/gax/grpc/ChannelPool.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/ChannelPool.java b/sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/ChannelPool.java index c65f46ff8096..d611c96ff4c8 100644 --- a/sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/ChannelPool.java +++ b/sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/ChannelPool.java @@ -62,7 +62,7 @@ * A {@link ManagedChannel} that will send requests round-robin via a set of channels. * *

In addition to spreading requests over a set of child connections, the pool will also actively - * manage the lifecycle of the channels. Currently lifecycle management is limited to pre-emptively + * manage the lifecycle of the channels. Currently, lifecycle management is limited to pre-emptively * replacing channels every hour. In the future it will dynamically size the pool based on number of * outstanding requests. * @@ -70,10 +70,7 @@ */ class ChannelPool extends ManagedChannel { static final String CHANNEL_POOL_CONSECUTIVE_RESIZING_WARNING = - "Channel pool is repeatedly resizing. " - + "Consider adjusting `initialChannelCount` or `maxResizeDelta` to a more reasonable value. " - + "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."; + "The gRPC ChannelPool used in the client has been flagged to be repeatedly resizing (5+ times). See https://github.com/googleapis/google-cloud-java/blob/main/docs/grpc_channel_pool_guide.md for more information about this behavior."; @VisibleForTesting static final Logger LOG = Logger.getLogger(ChannelPool.class.getName()); private static final java.time.Duration REFRESH_PERIOD = java.time.Duration.ofMinutes(50);