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

Allow a status of Successful when popping FATE repos #4302

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

cshannon
Copy link
Contributor

@cshannon cshannon commented Feb 23, 2024

When FATE cleans up transactions that are successful, it will check the auto_clean flag and if set will delete the transaction. But if it is false or not set then it will iterate over all the repos and call pop to remove them to save space so we need to add SUCCESSFUL to the allowed statuses for pop, along with FAILED_IN_PROGRESS.

We don't need to add FAILED because when FAILED_IN_PROGRESS is set FATE will already pop all the repos and clean up before setting the status to FAILED so pop should never be called in a FAILED state.

This closes #4300

When FATE cleans up transactions that are successful, it will check the
auto_clean flag and if set will delete the transaction. But if it is
false or not set then it will iterate over all the repos and call pop to
remove them to save space so we need to add SUCCESSFUL to the allowed
statuses for pop, along with FAILED_IN_PROGRESS.

This closes apache#4300
@cshannon cshannon self-assigned this Feb 23, 2024
@cshannon
Copy link
Contributor Author

I've run a few ITs with this and no longer see the exception pop up in the Manager log

@cshannon cshannon changed the title Allow a status of SUCCESSFUL when popping FATE repos Allow a status of Successful when popping FATE repos Feb 23, 2024
Copy link
Member

@DomGarguilo DomGarguilo left a comment

Choose a reason for hiding this comment

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

LGTM. I am also no longer seeing the exception in the manager log when running ITs.

@cshannon cshannon merged commit d39d304 into apache:elasticity Feb 26, 2024
8 checks passed
@cshannon cshannon deleted the accumulo-4300 branch March 15, 2024 11:08
@ctubbsii ctubbsii added this to the 4.0.0 milestone Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants