Skip to content

Conversation

stIncMale
Copy link
Member

This PR is very similar to #1203, which is why I assigned the same reviewers.

JAVA-5139

…(open, read, write), which is interruptible in a virtual thread

JAVA-5139
@stIncMale stIncMale self-assigned this Sep 26, 2023
cryptContext.completeKeyDecryptors();
} catch (Throwable t) {
throw wrapInClientException(t);
throw translateInterruptedException(t, "Interrupted while reading")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it necessary to translate interrupted exceptions both here and in the KeyManagementService (which this is calling)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Only if we want to add messages like "interrupted while connecting/writing/reading" which is what we do for streams, and why I did it this way here. But if it's fine to just have a single message "interrupted while doing IO", or no message at all, I'll be happy to remove the translating code from Crypt.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

JAVA-5139
@stIncMale stIncMale requested a review from jyemin September 26, 2023 21:51
Copy link
Member

@vbabanin vbabanin left a comment

Choose a reason for hiding this comment

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

LGTM

@stIncMale stIncMale merged commit 8b4776f into mongodb:master Sep 30, 2023
@stIncMale stIncMale deleted the JAVA-5139 branch September 30, 2023 13:59
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.

3 participants