Skip to content

Cosmos DB: Correctly handle DrainMode configuration #870

Merged
ealsur merged 9 commits intodevfrom
users/ealsur/drainmode
Sep 21, 2023
Merged

Cosmos DB: Correctly handle DrainMode configuration #870
ealsur merged 9 commits intodevfrom
users/ealsur/drainmode

Conversation

@ealsur
Copy link
Copy Markdown
Member

@ealsur ealsur commented Sep 20, 2023

For cases where DrainMode is used, the TryExecute call should not be passing a cancelled cancellation.

When StopAsync is called, and if DrainMode is NOT enabled, then a local cancellation will be signaled which is the one passed to TryExecute and also verified when checkpointing.

If DrainMode IS enabled, then the cancellation is NOT signaling, which does not block checkpointing.

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