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

Remove deprecated shard info ack level fields #2884

Merged
merged 4 commits into from
May 23, 2022

Conversation

yycptt
Copy link
Member

@yycptt yycptt commented May 20, 2022

What changed?

  • Remove deprecated shard info ack level fields

Why?

  • Remove deprecated shard info ack level fields

How did you test it?

  • Existing tests

Potential risks

  • User must deploy v1.16 release before using this commit.

Is hotfix candidate?

  • No.

@yycptt yycptt requested a review from a team as a code owner May 20, 2022 23:32
return NewAnyTag("shard-timer-acks", shardTimerAcks)
// ShardQueueAcks returns tag for shard queue ack levels
func ShardQueueAcks(shardQueueAcks interface{}) ZapTag {
return NewAnyTag("shard-queue-acks", shardQueueAcks)
Copy link
Member

Choose a reason for hiding this comment

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

could you double check this could actually print the content of the map, not just the pointer to the map.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I tried locally. It will print the actual content of shardInfo.QueueAckLevels.
But the one downside of the currently implementation is that the map key is the task category ID instead of the name.

I can change this function to take in category name as well and make it part of the tag key. Then each task category can have its own tag.

@yycptt yycptt merged commit 6b2b3f2 into temporalio:master May 23, 2022
@yycptt yycptt deleted the remove-deprecated-shard-fields branch May 23, 2022 20:45
Sushisource pushed a commit to Sushisource/temporal that referenced this pull request Jun 7, 2022
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