Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Add store_barrier to prevent master exit

Open LiYuRio opened this issue 3 years ago • 0 comments

PR types

New features

PR changes

APIs

Describe

When we use tcp_store, we put tcp server on process 0. If create sub-group using new_group, then process 0 may exist before others which lead to create comm_id failed. Now add store_barrier to ensure process 0 exit last.

使用tcp_store时,我们把server挂在0号进程上,在创建new_group时,如果0号进程不参与,那么就会有概率出现0号进程上的server提前退出,导致其他进程无法通信comm_id。为此增加store_barrier,保证0号进程最后退出。

LiYuRio avatar Aug 08 '22 02:08 LiYuRio