File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
s2a/src/main/java/io/grpc/s2a/channel Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 3030import io .grpc .internal .SharedResourceHolder .Resource ;
3131import io .grpc .netty .NettyChannelBuilder ;
3232import java .time .Duration ;
33+ import java .util .logging .Level ;
34+ import java .util .logging .Logger ;
3335import java .util .Optional ;
3436import java .util .concurrent .ConcurrentMap ;
3537import javax .annotation .concurrent .ThreadSafe ;
@@ -132,6 +134,7 @@ public String toString() {
132134 */
133135 @ VisibleForTesting
134136 static class HandshakerServiceChannel extends Channel {
137+ private static final Logger logger = Logger .getLogger (S2AStub .class .getName ());
135138 private final ManagedChannel delegate ;
136139
137140 static HandshakerServiceChannel create (ManagedChannel delegate ) {
@@ -166,6 +169,7 @@ public void close() {
166169 delegate .awaitTermination (CHANNEL_SHUTDOWN_TIMEOUT .getSeconds (), SECONDS );
167170 } catch (InterruptedException e ) {
168171 Thread .currentThread ().interrupt ();
172+ logger .log (Level .WARNING , "Channel to S2A was not shutdown." );
169173 }
170174 }
171175 }
You can’t perform that action at this time.
0 commit comments