-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[fleet_executor] Add interceptor ping pong test #37143
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
[fleet_executor] Add interceptor ping pong test #37143
Conversation
|
Thanks for your contribution! |
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.
Should these new dependencies be also added to the BRPC_DEPS below?
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.
yes,or make test failed
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.
Hhh, my typo 😂
The interceptor id should be unique.
It's 'id' instead of 'is'. lmao.
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.
done
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.
Why make this function public? I mean, under what circumstance will call this funct?
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.
Unnecessary public, maybe used by unittest, so set public.
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.
return void? If GetInterceptor is pubic for now, we can let users first call SetInterceptor to set, then call GetInterceptor to get the ptr?
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.
For convenient.
7459074 to
cab13e6
Compare
FeixLiu
left a comment
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.
LGTM
| const InterceptorMessage& interceptor_message); | ||
|
|
||
| void Send(int64_t dst_id, std::unique_ptr<InterceptorMessage> msg); | ||
| void Send(int64_t dst_id, InterceptorMessage& msg); // NOLINT |
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.
const&吧
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.
不行,一开始msg只有message的内容,src_id和dst_id都是在Send里面填充的。
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.
或者单独搞一个消息体,和src_id,dst_id分开
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.
感觉是Send就是发送消息,这里还会修改Message稍微有点奇怪了
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.
是的,主要是Message里面带有src/dst信息。如果按照tcp/ip这样的协议,只需要传消息体,src/dst都是内部给封装好的
PR types
Others
PR changes
Others
Describe
Add interceptor ping pong test.