New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DefaultLitePullConsumerImpl] There is no way to know whether the consumer has closed. #2152
Labels
Comments
IMO, it is necessary to add such a method. Could you submit a PR to fix it? |
Can you submit a PR to fix this issue? @zhangjidi2016 |
jjz921024
pushed a commit
to jjz921024/rocketmq
that referenced
this issue
Sep 17, 2020
RongtongJin
pushed a commit
that referenced
this issue
Sep 18, 2020
GenerousMan
pushed a commit
to GenerousMan/rocketmq
that referenced
this issue
Aug 12, 2022
…pl class and test suit (apache#2302)
GenerousMan
pushed a commit
to GenerousMan/rocketmq
that referenced
this issue
Aug 12, 2022
pulllock
pushed a commit
to pulllock/rocketmq
that referenced
this issue
Oct 19, 2023
…pl class and test suit (apache#2302)
pulllock
pushed a commit
to pulllock/rocketmq
that referenced
this issue
Oct 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BUG REPORT
When the project starts, I use DefaultLitePullConsumerImpl as the consumer, and call the consumer's poll(long timeout) method to do some logic.
when the project is closed, I call the consumer's shutdown method, but the consumer's poll(long timeout ) is still running, then I got a Exception: java.lang.IllegalStateException: The consumer not running, please start it first.
I try to find a isClosed() or isRunning() method in DefaultLitePullConsumerImpl class, but I cannot find them.
Is there a way to know that the consumer client has been closed ?
java.lang.IllegalStateException: The consumer not running, please start it first.
jdk 8
Springboot 2.2.8
rocketmq-spring-boot-starter 2.1.0
CentOS 7
The text was updated successfully, but these errors were encountered: