Skip to content

Conversation

@wangxicoding
Copy link
Contributor

PR types

Others

PR changes

Others

Describe

Add interceptor ping pong test.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

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?

Copy link
Contributor Author

@wangxicoding wangxicoding Nov 12, 2021

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.

Copy link
Contributor

@FeixLiu FeixLiu Nov 12, 2021

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For convenient.

@wangxicoding wangxicoding force-pushed the add_interceptor_ping_pong_test branch from 7459074 to cab13e6 Compare November 12, 2021 02:53
@FeixLiu FeixLiu changed the title Add interceptor ping pong test [fleet_executor] Add interceptor ping pong test Nov 12, 2021
Copy link
Contributor

@FeixLiu FeixLiu left a comment

Choose a reason for hiding this comment

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

LGTM

@wangxicoding wangxicoding merged commit 742378f into PaddlePaddle:develop Nov 12, 2021
@wangxicoding wangxicoding deleted the add_interceptor_ping_pong_test branch November 12, 2021 06:25
const InterceptorMessage& interceptor_message);

void Send(int64_t dst_id, std::unique_ptr<InterceptorMessage> msg);
void Send(int64_t dst_id, InterceptorMessage& msg); // NOLINT
Copy link
Contributor

Choose a reason for hiding this comment

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

const&吧

Copy link
Contributor Author

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里面填充的。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

或者单独搞一个消息体,和src_id,dst_id分开

Copy link
Contributor

Choose a reason for hiding this comment

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

感觉是Send就是发送消息,这里还会修改Message稍微有点奇怪了

Copy link
Contributor Author

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都是内部给封装好的

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