-
-
Notifications
You must be signed in to change notification settings - Fork 458
fix(replay): Avoid deadlock when pausing replay if no connection #4788
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
Merged
+4
−5
Conversation
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
…ME-391) (#4773) Removes the redundant main_binary_identifier parameter from the Build Distribution API calls, as it was always set to the same value as app_id. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: GitHub <noreply@github.com>
Bumps [gradle/actions](https://github.com/gradle/actions) from 4.4.3 to 5.0.0. - [Release notes](https://github.com/gradle/actions/releases) - [Commits](gradle/actions@ed40850...4d9f0ba) --- updated-dependencies: - dependency-name: gradle/actions dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.30.5 to 3.30.6. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@3599b3b...64d10c1) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 3.30.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Roman Zavarnitsyn <rom4ek93@gmail.com>
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
806307f | 357.85 ms | 424.64 ms | 66.79 ms |
d217708 | 375.27 ms | 415.68 ms | 40.41 ms |
ee747ae | 374.71 ms | 455.18 ms | 80.47 ms |
7314dbe | 437.83 ms | 505.64 ms | 67.81 ms |
3d205d0 | 352.15 ms | 432.53 ms | 80.38 ms |
ee747ae | 358.21 ms | 389.41 ms | 31.20 ms |
d217708 | 355.34 ms | 381.39 ms | 26.05 ms |
b3d8889 | 371.33 ms | 426.24 ms | 54.92 ms |
d217708 | 409.83 ms | 474.72 ms | 64.89 ms |
b750b96 | 421.25 ms | 444.09 ms | 22.84 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
806307f | 1.58 MiB | 2.10 MiB | 533.42 KiB |
d217708 | 1.58 MiB | 2.10 MiB | 532.97 KiB |
ee747ae | 1.58 MiB | 2.10 MiB | 530.95 KiB |
7314dbe | 1.58 MiB | 2.10 MiB | 533.45 KiB |
3d205d0 | 1.58 MiB | 2.10 MiB | 532.97 KiB |
ee747ae | 1.58 MiB | 2.10 MiB | 530.95 KiB |
d217708 | 1.58 MiB | 2.10 MiB | 532.97 KiB |
b3d8889 | 1.58 MiB | 2.10 MiB | 535.07 KiB |
d217708 | 1.58 MiB | 2.10 MiB | 532.97 KiB |
b750b96 | 1.58 MiB | 2.10 MiB | 533.20 KiB |
markushi
approved these changes
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, LGTM!
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
pauseInternal
in the case of no internet connection/rate-limit from the replayExecutor thread. However, this might be a heavy operation because we need to encode the current pending segment and therefore we'd be holding the lifecycleLock for too long. MovingcheckCanRecord
off the executor fixes this, because we no longer hold the lock for the entire encoding task, but just for submitting it to the executor💡 Motivation and Context
Fixes getsentry/sentry-react-native#4838
💚 How did you test it?
There's no really easy way to unit test the ANR, so I just manually verified it's not deadlocking when encoding huge segments
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps