-
Notifications
You must be signed in to change notification settings - Fork 917
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
Deprecate old namespace change callback #3774
Deprecate old namespace change callback #3774
Conversation
|
||
// failover callback will try to create a failover queue processor to scan all inflight tasks | ||
// if domain needs to be failovered. However, in the multicursor queue logic, the scan range | ||
// can't be retrieved before the processor is started. If failover callback is registered | ||
// before queue processor is started, it may result in a deadline as to create the failover queue, | ||
// queue processor need to be started. | ||
// | ||
// Ideally, when both timer and transfer queues enabled single cursor mode, we don't have to register | ||
// the callback. However, currently namespace migration is relying on the callback to UpdateHandoverNamespaces | ||
e.registerNamespaceFailoverCallback() |
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.
This change is from Cadence (cadence-workflow/cadence#3494) and should not be picked. It only applies to cadence version of multi-cursor implementation which still has the concept for failover queue.
}, | ||
) | ||
// for backward compatibility | ||
_ = e.shard.UpdateNamespaceNotificationVersion(ns.NotificationVersion() + 1) |
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.
The impl of UpdateNamespaceNotificationVersion will make sure that stored notification version will never go back.
What changed?
Why?
How did you test it?
Potential risks
Is hotfix candidate?