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

Update DescribeHistoryHost to check shard ownership #7207

Merged
merged 7 commits into from
Feb 4, 2025

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented Jan 31, 2025

What changed?

Update DescribeHistoryHost to check shard ownership

Why?

When providing shard id to describe history host, it needs to check shard ownership to make sure it connect to the correct history host.

How did you test it?

New unit test

Potential risks

Documentation

Is hotfix candidate?

@yux0 yux0 requested a review from a team as a code owner January 31, 2025 19:30
@yux0 yux0 requested review from xwduan and hai719 January 31, 2025 19:30
@yycptt
Copy link
Member

yycptt commented Jan 31, 2025

How will this API be used in the replication stack?

@yux0
Copy link
Contributor Author

yux0 commented Feb 3, 2025

How will this API be used in the replication stack?

We will call this API to and it will trigger a refresh to the history client connection cache.

_, err := adh.historyClient.GetShard(ctx, &historyservice.GetShardRequest{ShardId: serverClusterShardID.ShardID})

Copy link
Member

@yycptt yycptt left a comment

Choose a reason for hiding this comment

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

Synced offline. Let's include change for using this API the into this PR as well.

@yux0 yux0 enabled auto-merge (squash) February 4, 2025 08:18
@yux0 yux0 merged commit 83d4abe into temporalio:main Feb 4, 2025
49 checks passed
@yux0 yux0 deleted the yx/describe-host branch February 4, 2025 18:22
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.

3 participants