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

Return ShardOwnershipLostError as catch all from persistence layer #873

Conversation

samarabbas
Copy link
Contributor

@samarabbas samarabbas commented Jun 21, 2018

Cadence history service rely on ShardOwnershipLostError for triggering
unload of the shard. If persistence layer is unable to detect
ShardOwnershipLost error from Cassandra then it will cause retries
within Timer and Transfer processors and could result in fatal error
causing the entire host to be restarted.
Updating the persistence layer to always return ShardOwnershipLostError
is a catch all when unable to detect the cause of failed transaction to
only cause reload of single shard.

partially solve #867

Cadence history service rely on ShardOwnershipLostError for triggering
unload of the shard.  If persistence layer is unable to detect
ShardOwnershipLost error from Cassandra then it will cause retries
within Timer and Transfer processors and could result in fatal error
causing the entire host to be restarted.
Updating the persistence layer to always return ShardOwnershipLostError
is a catch all when unable to detect the cause of failed transaction to
only cause reload of single shard.
@wxing1292 wxing1292 merged commit 4dbdfd4 into cadence-workflow:master Jun 21, 2018
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.

2 participants