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

Handling exceptions caused by value serializers #37

Merged
merged 1 commit into from Jun 4, 2020
Merged

Handling exceptions caused by value serializers #37

merged 1 commit into from Jun 4, 2020

Conversation

vemilyus
Copy link
Contributor

If serialization and deserialization exceptions aren't handled, result CompletableFuture's will never be completed and cause hangs wherever they are accessed.

This fix wraps all serialization and deserialization in try-catch and completes the CompletableFuture's exceptionally after catching an exception.

This is only necessary for the async cache, the sync cache doesn't run into this problem and doesn't swallow such exceptions.

If serialization and deserialization exceptions aren't handled, result CompletableFuture's will never be completed and cause hangs wherever they are accessed.

This fix wraps all serialization and deserialization in try-catch and completes the CompletableFuture's exceptionally after catching an exception.

This is only necessary for the async cache, the sync cache doesn't run into this problem and doesn't swallow such exceptions.
@graemerocher graemerocher merged commit 04cf6c6 into micronaut-projects:master Jun 4, 2020
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