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 error when cluster info is not found #2868

Merged
merged 5 commits into from
May 19, 2022
Merged

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented May 19, 2022

What changed?
Return error when cluster info is not found

Why?
The cluster info and namespace are both updated in frontend. There is a race conditional in history service, the namespace is updated earlier than the cluster info. This should recover after retries.

How did you test it?
Existing unit tests

Potential risks

Is hotfix candidate?

@yux0 yux0 marked this pull request as ready for review May 19, 2022 17:25
@yux0 yux0 requested a review from a team as a code owner May 19, 2022 17:25
client/clientBean.go Outdated Show resolved Hide resolved
client/clientBean.go Show resolved Hide resolved
service/history/timerQueueProcessor.go Show resolved Hide resolved
Comment on lines +511 to +514
adminClient, err := t.shard.GetRemoteAdminClient(t.clusterName)
if err != nil {
return err
}
Copy link
Member

Choose a reason for hiding this comment

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

Ideally we can create this admin client when initializing the standby executor (in the caller) instead of getting admin client on every call to fetchHistory func. But in #2864 I am changing the logic to something like this so that one standby executor can process all standby tasks, no matter what their active cluster is.

So I guess this comment is mainly for other reviewers.

@yux0 yux0 merged commit 65ea107 into temporalio:master May 19, 2022
@yux0 yux0 deleted the cluster-error branch May 19, 2022 20:45
Sushisource pushed a commit to Sushisource/temporal that referenced this pull request Jun 7, 2022
* Return error when cluster info is not found
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

2 participants