-
Notifications
You must be signed in to change notification settings - Fork 927
Mark mostly readonly calls as idempotent #2252
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
Mark mostly readonly calls as idempotent #2252
Conversation
@@ -273,7 +273,16 @@ export class SimpleDb { | |||
objectStores | |||
); | |||
try { | |||
// TODO(schmidt-sebastian): Remove this code/comment or find a way to |
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.
I left this here for now to make my development process easier. This actually caught an issue during development, when I marked getNewDocumentChanges
as idempotent. It is not yet since it modifies internal state that is used during execution.
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.
LGTM
This reverts commit fd66c1a.
* Add transaction retries (#2250) * Marking SimpleDb calls as idempotent (#2251) * Mark mostly readonly calls as idempotent (#2252) * Fix test failure (#2256) * Make handleUserChange idempotent (#2257) * Temporarily disable CountingQueryEngine tests (#2258) * Improve test hack (#2259) * Improve test hack * Comment in test hack * Make getNewDocumentChanges() idempotent (#2255) * Add onCommitted listeners for transactions (#2265) * Fix build * Fix Lint * Make applyRemoteEvent idempotent (#2263) * Make notifyLocalViewChanges idempotent (#2268) * Make releaseQuery idempotent (#2266) * Mark acknowledgeBatch and rejectBatch idempotent (#2269) * idempotent `allocateQuery` and `notifyLocalViewChanges` (#2264) * Mark collectGarbage idempotent (#2267) * Idempotency: Address TODOs, add Changelog (#2270)
This PR marks the simple callsites of IndexedDbPersistence.runTransaction() as idempotent.
Prerequisite was to make 'readonly-primary' and friends available via the public Persistence interface.