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

[PLAT-6719] Make OnSendError changes non-persistent #1262

Merged
merged 2 commits into from
Jan 4, 2022

Conversation

nickdowell
Copy link
Contributor

Goal

Stop changes made by OnSendError blocks from being persisted for retries, to align the behaviour with that for crashes.

Changeset

BSGEventUploadOperation now serializes the event prior to invoking the OnSendError blocks and persists this version to disk if the delivery fails.

Note: this increases peak memory usage for apps that have OnSendError blocks.

Testing

Added E2E scenario to verify that changes are not persisted in retries.

@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size increased by 184 bytes from 1,255,256 to 1,255,440

Generated by 🚫 Danger

@nickdowell nickdowell merged commit 780e2f7 into next Jan 4, 2022
@nickdowell nickdowell deleted the nickdowell/fix-onsenderror-persistence branch January 4, 2022 13:26
@nickdowell nickdowell mentioned this pull request Jan 5, 2022
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.

2 participants