Skip to content

Commit f49a44e

Browse files
authored
fix: handle grpc CANCELLED status correctly in ConsumerKtImpl (#60)
1 parent 53ef2d9 commit f49a44e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/src/main/kotlin/io/hstream/impl/ConsumerKtImpl.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ class ConsumerKtImpl(
5858
delay(DefaultSettings.REQUEST_RETRY_INTERVAL_SECONDS * 1000)
5959
refreshServerUrl()
6060
streamingFetchWithRetry(requestFlow)
61+
} else if (status.code == Status.CANCELLED.code) {
62+
notifyStopped()
63+
logger.info("consumer [{}] is stopped", consumerName)
6164
} else {
6265
notifyFailed(HStreamDBClientException(e))
6366
}

0 commit comments

Comments
 (0)