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

Changes Exception to a Reaper Exception #1273

Merged
merged 3 commits into from Feb 8, 2023

Conversation

xgerman
Copy link
Contributor

@xgerman xgerman commented Feb 7, 2023

This should mitigate #1038

Instead of crashing the JVM we are wrapping the error into a ReaperException to mitigate the issue.

German Eichberger and others added 2 commits May 4, 2022 09:18
We have seen reaper exiting dueing this condition and this turns
it into a reaper exception instead of hitting the assertion in
computeGlobalSegmentCount.
@github-actions
Copy link

github-actions bot commented Feb 7, 2023

No linked issues found. Please add the corresponding issues in the pull request description.
Use GitHub automation to close the issue when a PR is merged

@xgerman
Copy link
Contributor Author

xgerman commented Feb 7, 2023

Will fix checkstyle violations when this looks like a patch we want to pursue...

@adejanovski
Copy link
Contributor

Hi @xgerman, we can move forward with this PR and merge it once you get CI to pass 👍

This makes it so that reaper doesn't crashes tight away if a
ks has been removed.
Copy link
Contributor

@adejanovski adejanovski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @xgerman !

@adejanovski adejanovski merged commit e11a831 into thelastpickle:master Feb 8, 2023
xgerman added a commit to microsoft/cassandra-reaper that referenced this pull request Feb 26, 2024
* Don't exit reaper if endpointToRange is empty and segment count 0

We have seen reaper exiting dueing this condition and this turns
it into a reaper exception instead of hitting the assertion in
computeGlobalSegmentCount.

* Makes an AssertionError a Reaper Exception

This makes it so that reaper doesn't crashes tight away if a
ks has been removed.

---------

Co-authored-by: German Eichberger <geeichbe@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants