Skip to content
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

Add consumer state check when request commands #772

Merged

Conversation

wolfstudy
Copy link
Member

Signed-off-by: xiaolongran xiaolongran@tencent.com

Motivation

At present, for different Command requests, when we request the Broker, some commands check the state of the current consumer, and some do not check the state of the current consumer.

If the consumer's state is closing or closed, in fact, we don't need to continue to request the broker, but should directly return the current request.

The current change checks all requests to the broker's command and adds a check on the consumer state.

Modifications

  • add error info for RequestOnCnxNoWait func
  • add consumer state check when request commands

Signed-off-by: xiaolongran <xiaolongran@tencent.com>
Signed-off-by: xiaolongran <xiaolongran@tencent.com>
@apache apache deleted a comment from billowqiu May 6, 2022
@wolfstudy wolfstudy merged commit 1e37f2f into apache:master May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants