Repository navigation
fix(ndk): Keep the interrupt when SentryNdk waits for native libraries (JAVA-552) - #6667
Merged
Merged
Conversation
SentryNdk.init and close wrap an InterruptedException in an IllegalStateException. They don't own the calling thread, so they now restore its interrupt flag first, for the code that does. Refs #5513 Refs JAVA-552 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 18, 2026
Merged
4 of 9 tasks
📲 Install BuildsAndroid
|
Refs #5513 Refs JAVA-552 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 19, 2026
runningcode
marked this pull request as ready for review
November 19, 2026 15:27
runningcode
requested review from
markushi and
romtsn
and removed request for
a team
November 19, 2026 15:27
Contributor
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9f9c390. Configure here.
markushi
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

📜 Description
SentryNdk.initandSentryNdk.closenow restore the interrupt flag before they wrap anInterruptedExceptionin anIllegalStateException. They don't own the calling thread, so the interrupt belongs to the code that does.💡 Motivation and Context
This is part of the
catch (Throwable)audit. It's independent of the other JAVA-552 PRs, so it can merge in any order.💚 How did you test it?
No new tests, only the existing ones.
📝 Checklist
sendDefaultPIIis enabled.#skip-changelog
🤖 Generated with Claude Code