Comments (9)
Just don't call consumer.awaitTerminated(5, SECONDS)
in the example.
After call consumer.startAsync
, the consumer will keep running in the background until you call consumer.stopAsync
.
For more details, see https://javadoc.io/doc/com.google.guava/guava/latest/com/google/common/util/concurrent/Service.html
from hstream.
Just don't call
consumer.awaitTerminated(5, SECONDS)
in the example.After call
consumer.startAsync
, the consumer will keep running in the background until you callconsumer.stopAsync
.For more details, see https://javadoc.io/doc/com.google.guava/guava/latest/com/google/common/util/concurrent/Service.html
After commenting consumer.awaitTerminated(5, SECONDS);
I got this error: Exception in thread "DefaultDispatcher-worker-5" Exception in thread "DefaultDispatcher-worker-2" Exception in thread "DefaultDispatcher-worker-1" io. hstream.HStreamDBClientException: io.grpc.StatusException: UNAVAILABLE: Channel shutdown invoked
from hstream.
Just don't call
consumer.awaitTerminated(5, SECONDS)
in the example.
After callconsumer.startAsync
, the consumer will keep running in the background until you callconsumer.stopAsync
.
For more details, see https://javadoc.io/doc/com.google.guava/guava/latest/com/google/common/util/concurrent/Service.htmlAfter commenting consumer.awaitTerminated(5, SECONDS); I got this error: Exception in thread "DefaultDispatcher-worker-5" Exception in thread "DefaultDispatcher-worker-2" Exception in thread "DefaultDispatcher-worker-1" io. hstream.HStreamDBClientException: io.grpc.StatusException: UNAVAILABLE: Channel shutdown invoked
This is because your main function finished. You should block the main thread to prevent it exiting at the end of main
function, such as call consumer.awaitTerminated()
at last.
from hstream.
ok,it is working
from hstream.
After running for a while (probably over an hour), I get this exception.
19:19:04.146 [DefaultDispatcher-worker-3] ERROR io.hstream.impl.ConsumerKtImpl - streamingFetch error:
io.grpc.StatusException: DEADLINE_EXCEEDED: deadline exceeded after 4999.995723700s. [remote_addr=/104.238.133.225:6570]
Is there a place to configure the timeout period on the hstream server?
from hstream.
After running for a while (probably over an hour), I get this exception. 19:19:04.146 [DefaultDispatcher-worker-3] ERROR io.hstream.impl.ConsumerKtImpl - streamingFetch error: io.grpc.StatusException: DEADLINE_EXCEEDED: deadline exceeded after 4999.995723700s. [remote_addr=/104.238.133.225:6570] Is there a place to configure the timeout period on the hstream server?
We have fixed this issue in hstreamdb-java 0.15.0 and recommend you to update to this version.
from hstream.
I have upgraded hstreamdb-java to 0.15.0, and HStreamDB to the latest(I don't know whether it is v0.15.0 version,No command found to view the Hstream version).The code cannot run, and the exception is recorded in the following log
log.txt。When I switch back to the previous version 0.13.0, it works. But it still exits at 5000 seconds.I think this time is configured in hstreamdb, not in hstream-java.
from hstream.
I have upgraded hstreamdb-java to 0.15.0, and HStreamDB to the latest(I don't know whether it is v0.15.0 version,No command found to view the Hstream version).The code cannot run, and the exception is recorded in the following log log.txt。When I switch back to the previous version 0.13.0, it works. But it still exits at 5000 seconds.I think this time is configured in hstreamdb, not in hstream-java.
Do you repull the latest docker image of hstreamdb ? To be clear, we recommend to use hstreamdb 0.15.
We have tested hstreamdb-java 0.15.0 against hstreamdb 0.15 and the latest, and they work well.
Regarding the consumer's timeout, it is indeed set on the java client side, and in 0.15 the consumer is set to never time out unless it is stopped.
from hstream.
ok,it is working now
from hstream.
Related Issues (20)
- Provide version info command for binaries (like `-v`, `--version`) HOT 2
- Unable to connect to JAVA client through JDK 11 - HOT 11
- Upgrade to ghc9
- 推荐您的项目参加-2022年**开源创新大赛
- arm64 bit docker builds HOT 1
- hstreamdb-java cannot connect to remote hstream server,the ip is converted to the Hstream Server intranet address HOT 1
- When I restart hstream through `docker compose -f quick-start.yaml up -d`, historical messages are repeatedly received and consumed after reconnecting with hstreamdb-java 0.15.0 HOT 13
- sql: parse empty array error
- How to deploy a web management page? Is this currently not open source? HOT 1
- 通过docker安装,无法启动hstore HOT 12
- 不支持Java嘛? HOT 1
- bug HOT 7
- hstream-http-server HOT 1
- write test HOT 5
- The difference between hstream and flink HOT 2
- Problems with connecting to secondary storage HOT 3
- stats: code refactoring
- reconnect zk while session expired
- Include HStream HTTP Server in Docker image. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hstream.