File tree Expand file tree Collapse file tree
s2a/src/main/java/io/grpc/s2a/channel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232import java .time .Duration ;
3333import java .util .Optional ;
3434import java .util .concurrent .ConcurrentMap ;
35+ import java .util .logging .Level ;
36+ import java .util .logging .Logger ;
3537import javax .annotation .concurrent .ThreadSafe ;
3638
3739/**
@@ -132,6 +134,8 @@ public String toString() {
132134 */
133135 @ VisibleForTesting
134136 static class HandshakerServiceChannel extends Channel {
137+ private static final Logger logger =
138+ Logger .getLogger (S2AHandshakerServiceChannel .class .getName ());
135139 private final ManagedChannel delegate ;
136140
137141 static HandshakerServiceChannel create (ManagedChannel delegate ) {
@@ -166,6 +170,7 @@ public void close() {
166170 delegate .awaitTermination (CHANNEL_SHUTDOWN_TIMEOUT .getSeconds (), SECONDS );
167171 } catch (InterruptedException e ) {
168172 Thread .currentThread ().interrupt ();
173+ logger .log (Level .WARNING , "Channel to S2A was not shutdown." );
169174 }
170175 }
171176 }
You can’t perform that action at this time.
0 commit comments