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

Use uuid as namespace notification ID #2733

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

wxing1292
Copy link
Contributor

What changed?

  • Use uuid as namespace change listener ID, instead of shard ID

Why?
In case shard is reloaded

How did you test it?
N/A

Potential risks
N/A

Is hotfix candidate?
N/A

@wxing1292 wxing1292 requested a review from a team as a code owner April 19, 2022 00:27
@wxing1292 wxing1292 enabled auto-merge (squash) April 19, 2022 00:33
@wxing1292 wxing1292 merged commit 78defe1 into temporalio:master Apr 19, 2022
@wxing1292 wxing1292 deleted the shard-to-uuid branch April 19, 2022 00:48
@@ -323,7 +325,7 @@ func (e *historyEngineImpl) registerNamespaceFailoverCallback() {

// first set the failover callback
e.shard.GetNamespaceRegistry().RegisterNamespaceChangeCallback(
e.shard.GetShardID(),
e.namespaceChangeListenerID,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could use any instead of string and then use e itself here

meiliang86 pushed a commit that referenced this pull request Apr 19, 2022
* Use uuid as namespace change listener ID, instead of shard ID
yycptt pushed a commit that referenced this pull request Apr 19, 2022
* Use uuid as namespace change listener ID, instead of shard ID
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.

None yet

3 participants