Skip to content

MLC - Add isInExpectedState() #1970

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

Closed
garyrussell opened this issue Oct 4, 2021 · 0 comments · Fixed by #1971
Closed

MLC - Add isInExpectedState() #1970

garyrussell opened this issue Oct 4, 2021 · 0 comments · Fixed by #1971
Assignees
Milestone

Comments

@garyrussell
Copy link
Contributor

See spring-attic/spring-cloud-stream-binder-kafka#1138 (comment)

@garyrussell garyrussell added this to the 2.8.0-RC1 milestone Oct 4, 2021
@garyrussell garyrussell self-assigned this Oct 4, 2021
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Oct 4, 2021
Resolves spring-projects#1970

SCSt health check uses `isRunning()` to measure health. However a container
that was `autoStartup=false` (or has been stopped) is healthy, it is just
not running.

- add `isInexpectedState()`
- add `stopAbnormally()`
- call `stopAbnormally` (from `emergencyStop`) when a listener throws an `Error`
- call `stopAbnormally` from the container stopping error handler
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Oct 4, 2021
Resolves spring-projects#1970

SCSt health check uses `isRunning()` to measure health. However a container
that was `autoStartup=false` (or has been stopped) is healthy, it is just
not running.

- add `isInexpectedState()`
- add `stopAbnormally()`
- call `stopAbnormally` (from `emergencyStop`) when a listener throws an `Error`
- call `stopAbnormally` from the container stopping error handler
artembilan pushed a commit that referenced this issue Oct 4, 2021
Resolves #1970

SCSt health check uses `isRunning()` to measure health. However a container
that was `autoStartup=false` (or has been stopped) is healthy, it is just
not running.

- add `isInexpectedState()`
- add `stopAbnormally()`
- call `stopAbnormally` (from `emergencyStop`) when a listener throws an `Error`
- call `stopAbnormally` from the container stopping error handler

* Fix test.

Stopping one container causes a rebalance which may cause a redelivery.
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Oct 4, 2021
Add an option to stop the container normally.

There might be a case where the container is stopped due to an error, but
the user wants the container to remain 'healthy', e.g. to avoid Kubernetes
restarting the instance.
artembilan pushed a commit that referenced this issue Oct 4, 2021
Add an option to stop the container normally.

There might be a case where the container is stopped due to an error, but
the user wants the container to remain 'healthy', e.g. to avoid Kubernetes
restarting the instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant