-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat(clustering) inline version negotiation #8926
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code structure seems very good, but needs tests to be sure of corner cases, especially about data transformations and priority logic.
most of my comments are minor, except for some dubious optimizations that reduce readability or cross abstraction responsibilities. especially about merging the accepted and rejected structures, just because they have similar fields.
I think maybe after this PR, we should add some test cases to cover wrpc feature. |
Still I need to add another feature first, so we can unblock the global rate limiting. |
da4de46
to
b40523e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
happy to see a much more robust data representation.
there's still an issue, however: while it's perfectly OK to use a map
in protobuf, i don't see any advantage here. I've previously mentioned that the amount of data manipulation here makes tests particularly important (because it's hard to be sure of the "shape" of the data produced at every step); now I think that changing replacing those maps with arrays would greatly simplify the code, removing most of the complex transformations.
fix FT-3005
d66a69a
to
247b382
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's take adding tests as next priority over other wrpc features @suika-kong
Due to refactoring, #8775 has a lot of merging conflicts. So this is a retry of that.
I've also refactored this and designed it a little differently. And I added a check before the config sync process.
fix FT-3005