-
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
Filter replication task on source cluster #3641
Filter replication task on source cluster #3641
Conversation
7089d94
to
dffd2aa
Compare
|
||
ns, err := p.namespaceRegistry.GetNamespaceByID(namespace.ID(task.GetNamespaceID())) | ||
if err != nil { | ||
if _, isNotFound := err.(*serviceerror.NamespaceNotFound); !isNotFound { |
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.
Is it possible that this could happen after host restart and before ns refresh fetched the namespace info?
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.
First call to load namespaces is from registry.Start method, which is blocking and called by fx
during container is getting built.
What changed?
Filter replication tasks on source cluster.
Why?
The source cluster should skip replication tasks, if the destination (calling) cluster is not in the cluster list for the task namespace.
How did you test it?
Added new unit tests and validated locally with 3 clusters setup.
Potential risks
No risks.
Is hotfix candidate?
No.