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

Flush persisted sessions on launch and on connectivity changes #973

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Oct 28, 2020

Goal

Session payloads are persisted on disk if a request to bugsnag was unsuccessful. Delivery of these is only attempted currently when a new session is captured. To increase the speed with which requests are received, delivery should also be attempted on Client initialization` and whenever connectivity changes.

Changeset

Called flushAsync() in the client constructor and connectivity change callback. Access to this method is guarded by a Semaphore so concurrent calls will be ignored.

Testing

Relied on existing E2E tests, and manually verified that an undelivered session is now delivered when the client is launched or the connectivity is regained.

@fractalwrench fractalwrench force-pushed the PLAT-5331/session-flush branch from 12dfc60 to f678337 Compare October 28, 2020 10:05
@bugsnagbot
Copy link
Collaborator

bugsnagbot commented Oct 28, 2020

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1440.44 1361.29
arm64_v8a 369.25 287.32
armeabi 348.76 266.85
armeabi_v7a 332.39 250.47
x86 406.1 328.27
x86_64 389.72 307.81

Generated by 🚫 Danger

Base automatically changed from PLAT-5282/connectivity-fix to next October 28, 2020 11:50
@fractalwrench fractalwrench force-pushed the PLAT-5331/session-flush branch from f678337 to 996a543 Compare October 28, 2020 12:13
@fractalwrench fractalwrench marked this pull request as ready for review October 28, 2020 14:12
@fractalwrench
Copy link
Contributor Author

Test failures on Android 6 and 7 due to current blocking device farm issue.

@fractalwrench fractalwrench merged commit e1c0445 into next Oct 28, 2020
@fractalwrench fractalwrench deleted the PLAT-5331/session-flush branch October 28, 2020 14:28
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