-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Return ConsumerStoppedEvent with Abnormal reason when MLC stopped abn… #3949
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
base: main
Are you sure you want to change the base?
Conversation
926b75f
to
057c8c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: AlamuriLokesh
Please, consider to fix your Git client to provide your official name.
According to DCO, the legal obligations for contributed code has to be from official name, not nicknames.
Otherwise we cannot review and accept your change.
515211d
to
e2626ed
Compare
Could you please review now. I have updated my name as |
@@ -43,6 +43,11 @@ public enum Reason { | |||
*/ | |||
NORMAL, | |||
|
|||
/** | |||
* The consumer was stopped because the container was stopped abnormally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now this makes sense to me.
Thank you!
Please, add here @since 4.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments. We need to add reference docs for this since this is a new addition.
@@ -43,6 +43,11 @@ public enum Reason { | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add your name as an @author
.
@@ -43,6 +43,11 @@ public enum Reason { | |||
*/ | |||
NORMAL, | |||
|
|||
/** | |||
* The consumer was stopped because the container was stopped abnormally. | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@since
tag.
@@ -537,6 +537,9 @@ else if (throwable instanceof AuthenticationException || throwable instanceof Au | |||
else if (throwable instanceof NoOffsetForPartitionException) { | |||
reason = Reason.NO_OFFSET; | |||
} | |||
else if (!this.isStoppedNormally()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add your name as an @author
to the class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have already contributed to this file using my personal email Id. Author name is Lokesh Alamuri
. Please let me know if some changes are required.
@@ -1088,11 +1088,29 @@ protected Consumer<Integer, String> createKafkaConsumer(String groupId, String c | |||
assertThat(container.getContainers()). | |||
doesNotContain(childContainer1); | |||
|
|||
container.getContainers().forEach(containerForEach -> containerForEach.stop()); | |||
KafkaMessageListenerContainer<Integer, String> childContainer0SecRun = container.getContainers().get(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add your name as an @author
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have already contributed to this file using my personal email Id. Author name is Lokesh Alamuri. Please let me know if some changes are required.
b95e9f3
to
cff0e99
Compare
…ormally Signed-off-by: Alamuri Lokesh <[email protected]>
cff0e99
to
e14e6c2
Compare
…ormally