Skip to content

Conversation

@mikehaney24
Copy link
Contributor

Fixes an issue where the upload coordinator removes events from disk when the upload was unsuccessful and should be retried in the future.

@mikehaney24
Copy link
Contributor Author

I added a unit test and confirmed that the test fails without the changes I made.

Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

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

One test nit and then LGTM.

Please send a cherry-pick PR and I'll make another RC

@mikehaney24 mikehaney24 merged commit ea3521d into master Mar 23, 2020
@mikehaney24 mikehaney24 deleted the mph-fixmissingfiles branch March 23, 2020 21:11
mikehaney24 added a commit that referenced this pull request Mar 23, 2020
* Only delete events when package was successfully delivered

* Add unit test to check that retrying a package delivery doesn't delete an event file
mikehaney24 added a commit that referenced this pull request Mar 23, 2020
…5173)

* Only delete events when package was successfully delivered

* Add unit test to check that retrying a package delivery doesn't delete an event file
paulb777 added a commit that referenced this pull request Mar 24, 2020
* Update versions for Release 6.21.0

* Libraries should save state if a completion block is requested (#5147) (#5148)

* Libraries should save state if a completion block is requested

Currently, the onComplete block of sendXEvent:onComplete: is invoked when the event bytes are written to disk. However, if the app crashes before a lifecycle event occurs (trigger GDTCORStorage to serialize to disk), that event if effectively lost because the metadata has all been lost. This change triggers the saving of state of GDTCORStorage and prioritizers (if they implement it) if an onComplete block has been given.

* Remove RC from M67 (#5157)

* Revert "Migrate from using IID SDK for Remote Config to the new FIS SDK (#5096)" (#5156) (#5159)

This reverts commit 887ff82.

* Only delete events when package was successfully delivered (#5172) (#5173)

* Only delete events when package was successfully delivered

* Add unit test to check that retrying a package delivery doesn't delete an event file

Co-authored-by: Michael Haney <mikehaney24@users.noreply.github.com>
Co-authored-by: Maksym Malyhin <mmaksym@google.com>
@firebase firebase locked and limited conversation to collaborators Apr 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants