Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static void monitorChannelState(
}
}
if (currentState != ConnectivityState.SHUTDOWN) {
log.debug("shutting down grpc channel");
log.debug("continuing to monitor the grpc channel");
// Re-register the state monitor to watch for the next state transition.
monitorChannelState(currentState, channel, onConnectionReady, onConnectionLost);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ void observeEventStream(final BlockingQueue<QueuePayload> writeTo, final AtomicB
// instead of logging and throwing here, retain the exception and handle in the
// stream logic below
metadataException = e;
log.debug("Metadata exception: {}", e.getMessage(), e);
}

while (!shutdown.get()) {
Expand All @@ -129,7 +130,10 @@ void observeEventStream(final BlockingQueue<QueuePayload> writeTo, final AtomicB

Throwable streamException = response.getError();
if (streamException != null || metadataException != null) {
log.debug("Exception in GRPC connection");
log.debug(
"Exception in GRPC connection, streamException {}, metadataException {}",
streamException,
metadataException);
if (!writeTo.offer(new QueuePayload(
QueuePayloadType.ERROR, "Error from stream or metadata", metadataResponse))) {
log.error("Failed to convey ERROR status, queue is full");
Expand Down