Skip to content

Commit 9d3e5d9

Browse files
authored
consumer: fix state transition when recv cancel code (#62)
1 parent f49a44e commit 9d3e5d9

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: ./gradlew ktlintCheck
3535

3636
- name: Prepare test env
37-
run: script/prepare-test-env-latest.sh
37+
run: script/prepare-test-env.sh
3838

3939
- name: Build and test with Gradle
4040
run: ./gradlew build

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ class ConsumerKtImpl(
5959
refreshServerUrl()
6060
streamingFetchWithRetry(requestFlow)
6161
} else if (status.code == Status.CANCELLED.code) {
62-
notifyStopped()
63-
logger.info("consumer [{}] is stopped", consumerName)
62+
// this means consumer closed actively, and do nothing here
6463
} else {
6564
notifyFailed(HStreamDBClientException(e))
6665
}

script/prepare-test-env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
DEFAULT_HSTREAM_DOCKER_TAG="v0.6.0"
5+
DEFAULT_HSTREAM_DOCKER_TAG="v0.6.6"
66

77
docker pull hstreamdb/hstream:${DEFAULT_HSTREAM_DOCKER_TAG} || true
88

0 commit comments

Comments
 (0)