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

STORM-4085 - Ensure that DownloadOrUpdate exception is caught #3704

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

paxadax
Copy link
Contributor

@paxadax paxadax commented Oct 8, 2024

What is the purpose of the change

Issue

The AsyncLocalizer class contains a scheduler that continuously performs downloadOrUpdate operations on blobs. Currently, if an exception occurs during this update process, the exception is not properly handled, causing the thread to terminate.
As a result, workers are unable to update blobs because the threads have been killed. The only way to recover from this is by restarting the supervisor.

This fix ensures that exceptions are properly handled, preventing workers from getting stuck while updating blobs.

How was the change tested

After a few leadership changes, the worker threads for updating blobs are killed. On my tests, I forced leadership changes and ensure that the threads are not being killed due to exceptions.

@rzo1 rzo1 changed the title feat: Ensure that DownloadOrUpdate exception is caught STORM-4085 - Ensure that DownloadOrUpdate exception is caught Oct 9, 2024
@rzo1 rzo1 merged commit 2f6732c into apache:master Oct 9, 2024
18 checks passed
@rzo1
Copy link
Contributor

rzo1 commented Oct 9, 2024

Thanks for the PR @paxadax

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.

4 participants