Skip to content

fix(core): Restore directory processor interrupt flag - #5884

Merged
0xadam-brown merged 2 commits into
mainfrom
fix/directory-processor-thread-interrupt
Aug 5, 2026
Merged

fix(core): Restore directory processor interrupt flag#5884
0xadam-brown merged 2 commits into
mainfrom
fix/directory-processor-thread-interrupt

Conversation

@0xadam-brown

@0xadam-brown 0xadam-brown commented Aug 3, 2026

Copy link
Copy Markdown
Member

📜 Description

Restores thread interrupt status when the inter-envelope processing delay is interrupted so callers can observe the status after directory processing returns.

💡 Motivation and Context

Fixes JAVA-666

💚 How did you test it?

Via a new regression test

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

@linear-code

linear-code Bot commented Aug 3, 2026

Copy link
Copy Markdown

JAVA-666

Restore the interrupt status when the inter-envelope processing delay is interrupted so callers can observe the interruption after directory processing returns.

Add regression coverage for the interrupted delay path.

Fixes JAVA-666
Co-Authored-By: OpenCode <noreply@opencode.ai>
@0xadam-brown
0xadam-brown force-pushed the fix/directory-processor-thread-interrupt branch from 07a909c to 12a780d Compare August 3, 2026 14:03
@sentry

sentry Bot commented Aug 3, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.51.0 (1) release

⚙️ sentry-android Build Distribution Settings

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 320.62 ms 356.29 ms 35.67 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
455eb6e 341.51 ms 428.96 ms 87.45 ms
d15471f 343.13 ms 361.47 ms 18.34 ms
b193867 331.08 ms 397.06 ms 65.98 ms
5b1a06b 315.40 ms 353.33 ms 37.94 ms
62b579c 312.88 ms 361.57 ms 48.70 ms
85d7417 347.21 ms 394.35 ms 47.15 ms
6dff1c9 298.04 ms 327.43 ms 29.39 ms
5b1a06b 310.56 ms 362.79 ms 52.22 ms
ee747ae 386.94 ms 431.43 ms 44.49 ms
462dea2 322.40 ms 370.06 ms 47.66 ms

App size

Revision Plain With Sentry Diff
455eb6e 0 B 0 B 0 B
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
b193867 1.58 MiB 2.19 MiB 620.00 KiB
5b1a06b 0 B 0 B 0 B
62b579c 0 B 0 B 0 B
85d7417 1.58 MiB 2.10 MiB 533.44 KiB
6dff1c9 0 B 0 B 0 B
5b1a06b 0 B 0 B 0 B
ee747ae 1.58 MiB 2.10 MiB 530.95 KiB
462dea2 0 B 0 B 0 B

Previous results on branch: fix/directory-processor-thread-interrupt

Startup times

Revision Plain With Sentry Diff
b502941 311.87 ms 361.30 ms 49.43 ms

App size

Revision Plain With Sentry Diff
b502941 0 B 0 B 0 B

@0xadam-brown 0xadam-brown added the sanity-check PR needs a lightweight review for obvious issues label Aug 3, 2026
@0xadam-brown
0xadam-brown marked this pull request as ready for review August 3, 2026 14:12

@runningcode runningcode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice find and fix! I wonder if there are other places with the same issue because we catch Throwable too broadly!

Comment thread sentry/src/main/java/io/sentry/DirectoryProcessor.java
Comment thread sentry/src/main/java/io/sentry/DirectoryProcessor.java
Handle thread interruption as its own control path in DirectoryProcessor.
Restore the interrupt flag and log the interruption at INFO so
shutdown or cancellation does not look like an application error.

Co-Authored-By: OpenCode <noreply@opencode.ai>
@0xadam-brown
0xadam-brown enabled auto-merge (squash) August 5, 2026 11:12
@0xadam-brown
0xadam-brown merged commit 998c538 into main Aug 5, 2026
70 of 71 checks passed
@0xadam-brown
0xadam-brown deleted the fix/directory-processor-thread-interrupt branch August 5, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sanity-check PR needs a lightweight review for obvious issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants