Skip to content
This repository was archived by the owner on Aug 18, 2019. It is now read-only.

Improve ShardedCounterService to handle Datastore Exception #32

@sappenin

Description

@sappenin

See the discussion in #31. We need to tweak the interface for ShardedCounterService#increment and decrement to be able to return a CounterOperation in the event that a DatastoreTimeoutException or DatastoreFailureException is thrown. Since the Datastore may have actually succeeded in these cases, this would allow the caller to retry in an idempotent fashion.

Alternatively, perhaps the implementation could catch these exceptions and try to handle them internally as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions