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

Push serialization of history branch from history manager down to history store #3205

Merged
merged 3 commits into from
Aug 10, 2022

Conversation

norberthu
Copy link
Contributor

What changed?

Why?

How did you test it?

Potential risks

Is hotfix candidate?

@norberthu norberthu requested a review from a team as a code owner August 9, 2022 18:26
@norberthu norberthu force-pushed the new-history-branch branch from 194903c to fe661df Compare August 9, 2022 21:14
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.

Shall we special handle NewHistoryBranch in persistence rate limiting client (maybe also retryable client) as it's not actually hitting DB or performing rpc call?

var err error
resp.BranchToken, err = NewHistoryBranchToken(request.TreeId)
return resp, err
req := &NewHistoryBranchRequest{
Copy link
Member

Choose a reason for hiding this comment

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

nit: is this the same as the request parameter? resp is also the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch! For the longest time I actually had a parallel Internal- prefixed struct and decided last minute that was unnecessary for this particular function. I'll clean this up

@norberthu
Copy link
Contributor Author

Regarding rate limiting and retryable for NewHistoryBranch, while I don't have any immediate plans, there's a non-zero chance this might be necessary in the near future.

@norberthu norberthu requested a review from yycptt August 10, 2022 16:12
@norberthu norberthu merged commit 42168bf into master Aug 10, 2022
@norberthu norberthu deleted the new-history-branch branch August 10, 2022 16:28
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