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
logger.log(Level.WARNING, "NoOpChannelPrimer was provided, not checking channel health.");
120
121
}
121
122
}
122
123
123
124
/** Stop running health checking */
124
125
publicvoidstop() {
125
126
if (probeTaskScheduledFuture != null) {
126
-
probeTaskScheduledFuture.cancel(true);
127
+
probeTaskScheduledFuture.cancel(false);
127
128
}
128
129
if (detectAndRemoveTaskScheduledFuture != null) {
129
-
detectAndRemoveTaskScheduledFuture.cancel(true);
130
+
detectAndRemoveTaskScheduledFuture.cancel(false);
130
131
}
131
132
}
132
133
133
134
/** Runs probes on all the channels in the pool. */
134
135
@VisibleForTesting
135
136
voidrunProbes() {
137
+
Preconditions.checkState(channelPrimerinstanceofBigtableChannelPrimer, "Health checking can only be enabled with BigtableChannelPrimer, found %s", channelPrimer);
136
138
for (Entryentry : this.entrySupplier.get()) {
137
139
finalInstantstartTime = clock.instant();
138
140
finalApiFuture<PingAndWarmResponse> probeFuture;
139
141
140
-
if (channelPrimerinstanceofBigtableChannelPrimer) {
0 commit comments