Skip to content

Commit 6f3a96b

Browse files
authored
chore(gax-grpc): Update the ChannelPool warning message to point to the Gax Channel Pool guide (#12930)
1 parent ea081fe commit 6f3a96b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc

sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/ChannelPool.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,15 @@
6262
* A {@link ManagedChannel} that will send requests round-robin via a set of channels.
6363
*
6464
* <p>In addition to spreading requests over a set of child connections, the pool will also actively
65-
* manage the lifecycle of the channels. Currently lifecycle management is limited to pre-emptively
65+
* manage the lifecycle of the channels. Currently, lifecycle management is limited to pre-emptively
6666
* replacing channels every hour. In the future it will dynamically size the pool based on number of
6767
* outstanding requests.
6868
*
6969
* <p>Package-private for internal use.
7070
*/
7171
class ChannelPool extends ManagedChannel {
7272
static final String CHANNEL_POOL_CONSECUTIVE_RESIZING_WARNING =
73-
"Channel pool is repeatedly resizing. "
74-
+ "Consider adjusting `initialChannelCount` or `maxResizeDelta` to a more reasonable value. "
75-
+ "See https://docs.cloud.google.com/java/docs/troubleshooting to enable logging "
76-
+ "and set `com.google.api.gax.grpc.ChannelPool.level=FINEST` to log the channel pool resize behavior.";
73+
"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.";
7774
@VisibleForTesting static final Logger LOG = Logger.getLogger(ChannelPool.class.getName());
7875
private static final java.time.Duration REFRESH_PERIOD = java.time.Duration.ofMinutes(50);
7976

0 commit comments

Comments
 (0)