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

Better error handling for ill-formatted messages #8

Merged
merged 1 commit into from
Feb 29, 2016

Conversation

shankari
Copy link
Contributor

Before this, on android, if there was a single ill-formatted message, we used
to abort the entire sync. Now, we only skip that message. Currently, all
skipped messages are deleted at the end of the sync.

We were originally going to store skipped messages in a separate error
database. But it turns out that on iOS, we check validity at insert time, and
invalid messages are not stored in the usercache at all, which means that they
are effectively discarded.

We need to decide our error handling policy. Until we do this, we discard on
both iOS (at insert time) and on android (at upload time). We have created an
error database to store the data, but are not using it pending decision.

The issue is being tracked in:
#7

Before this, on android, if there was a single ill-formatted message, we used
to abort the entire sync. Now, we only skip that message. Currently, all
skipped messages are deleted at the end of the sync.

We were originally going to store skipped messages in a separate error
database. But it turns out that on iOS, we check validity at insert time, and
invalid messages are not stored in the usercache at all, which means that they
are effectively discarded.

We need to decide our error handling policy. Until we do this, we discard on
both iOS (at insert time) and on android (at upload time). We have created an
error database to store the data, but are not using it pending decision.

The issue is being tracked in:
e-mission#7
shankari added a commit that referenced this pull request Feb 29, 2016
Better error handling for ill-formatted messages
@shankari shankari merged commit 96d90e4 into e-mission:master Feb 29, 2016
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.

1 participant