baidu / braft

An industrial-grade C++ implementation of RAFT consensus algorithm based on brpc, widely used inside Baidu to build highly-available distributed systems.
Apache License 2.0
3.99k stars 886 forks source link

counter example failed to run with below error #374

Open gaowayne opened 2 years ago

gaowayne commented 2 years ago

could you please help on this?

root@wcp116:~/wayne/braft/braft/example/counter/build# ls
CMakeCache.txt  CMakeFiles  cmake_install.cmake  counter_client  counter.pb.cc  counter.pb.h  counter_server  Makefile  run_client.sh  run_server.sh  shflags  stop.sh
root@wcp116:~/wayne/braft/braft/example/counter/build# ./run_server.sh 
root@wcp116:~/wayne/braft/braft/example/counter/build# ./run_client.sh 
W1003 07:02:28.632813 3978233 /root/wayne/braft/braft/example/counter/client.cpp:46] Fail to refresh_leader : [127.0.1.1:8100:0] [E2][127.0.1.1:8100][E2]No nodes in group Counter [R1][E2][127.0.1.1:8100][E2]No nodes in group Counter [R2][E2][127.0.1.1:8100][E2]No nodes in group Counter [R3][E2][127.0.1.1:8100][E2]No nodes in group Counter, [127.0.1.1:8101:0] [E2][127.0.1.1:8101][E2]No nodes in group Counter [R1][E2][127.0.1.1:8101][E2]No nodes in group Counter [R2][E2][127.0.1.1:8101][E2]No nodes in group Counter [R3][E2][127.0.1.1:8101][E2]No nodes in group Counter, [127.0.1.1:8102:0] [E2][127.0.1.1:8102][E2]No nodes in group Counter [R1][E2][127.0.1.1:8102][E2]No nodes in group Counter [R2][E2][127.0.1.1:8102][E2]No nodes in group Counter [R3][E2][127.0.1.1:8102][E2]No nodes in group Counter
I1003 07:02:29.621223 3978224 /root/wayne/braft/braft/example/counter/client.cpp:134] Sending Request to Counter (127.0.1.1:8100:0,127.0.1.1:8101:0,127.0.1.1:8102:0,) at qps=0 latency=0
W1003 07:02:29.636562 3978233 /root/wayne/braft/braft/example/counter/client.cpp:46] Fail to refresh_leader : [127.0.1.1:8100:0] [E2][127.0.1.1:8100][E2]No nodes in group Counter [R1][E2][127.0.1.1:8100][E2]No nodes in group Counter [R2][E2][127.0.1.1:8100][E2]No nodes in group Counter [R3][E2][127.0.1.1:8100][E2]No nodes in group Counter, [127.0.1.1:8101:0] [E2][127.0.1.1:8101][E2]No nodes in group Counter [R1][E2][127.0.1.1:8101][E2]No nodes in group Counter [R2][E2][127.0.1.1:8101][E2]No nodes in group Counter [R3][E2][127.0.1.1:8101][E2]No nodes in group Counter, [127.0.1.1:8102:0] [E2][127.0.1.1:8102][E2]No nodes in group Counter [R1][E2][127.0.1.1:8102][E2]No nodes in group Counter [R2][E2][127.0.1.1:8102][E2]No nodes in group Counter [R3][E2][127.0.1.1:8102][E2]No nodes in group Counter
I1003 07:02:30.621382 3978224 /root/wayne/braft/braft/example/counter/client.cpp:134] Sending Request to Counter (127.0.1.1:8100:0,127.0.1.1:8101:0,127.0.1.1:8102:0,) at qps=0 latency=0
W1003 07:02:30.639744 3978233 /root/wayne/braft/braft/example/counter/client.cpp:46] Fail to refresh_leader : [127.0.1.1:8100:0] [E2][127.0.1.1:8100][E2]No nodes in group Counter [R1][E2][127.0.1.1:8100][E2]No nodes in group Counter [R2][E2][127.0.1.1:8100][E2]No nodes in group Counter [R3][E2][127.0.1.1:8100][E2]No nodes in group Counter, [127.0.1.1:8101:0] [E2][127.0.1.1:8101][E2]No nodes in group Counter [R1][E2][127.0.1.1:8101][E2]No nodes in group Counter [R2][E2][127.0.1.1:8101][E2]No nodes in group Counter [R3][E2][127.0.1.1:8101][E2]No nodes in group Counter, [127.0.1.1:8102:0] [E2][127.0.1.1:8102][E2]No nodes in group Counter [R1][E2][127.0.1.1:8102][E2]No nodes in group Counter [R2][E2][127.0.1.1:8102][E2]No nodes in group Counter [R3][E2][127.0.1.1:8102][E2]No nodes in group Counter
I1003 07:02:31.621537 3978224 /root/wayne/braft/braft/example/counter/client.cpp:134] Sending Request to Counter (127.0.1.1:8100:0,127.0.1.1:8101:0,127.0.1.1:8102:0,) at qps=0 latency=0
W1003 07:02:31.642930 3978233 /root/wayne/braft/braft/example/counter/client.cpp:46] Fail to refresh_leader : [127.0.1.1:8100:0] [E2][127.0.1.1:8100][E2]No nodes in group Counter [R1][E2][127.0.1.1:8100][E2]No nodes in group Counter [R2][E2][127.0.1.1:8100][E2]No nodes in group Counter [R3][E2][127.0.1.1:8100][E2]No nodes in group Counter, [127.0.1.1:8101:0] [E2][127.0.1.1:8101][E2]No nodes in group Counter [R1][E2][127.0.1.1:8101][E2]No nodes in group Counter [R2][E2][127.0.1.1:8101][E2]No nodes in group Counter [R3][E2][127.0.1.1:8101][E2]No nodes in group Counter, [127.0.1.1:8102:0] [E2][127.0.1.1:8102][E2]No nodes in group Counter [R1][E2][127.0.1.1:8102][E2]No nodes in group Counter [R2][E2][127.0.1.1:8102][E2]No nodes in group Counter [R3][E2][127.0.1.1:8102][E2]No nodes in group Counter
I1003 07:02:32.621699 3978224 /root/wayne/braft/braft/example/counter/client.cpp:134] Sending Request to Counter (127.0.1.1:8100:0,127.0.1.1:8101:0,127.0.1.1:8102:0,) at qps=0 latency=0
W1003 07:02:32.646217 3978233 /root/wayne/braft/braft/example/counter/client.cpp:46] Fail to refresh_leader : [127.0.1.1:8100:0] [E2][127.0.1.1:8100][E2]No nodes in group Counter [R1][E2][127.0.1.1:8100][E2]No nodes in group Counter [R2][E2][127.0.1.1:8100][E2]No nodes in group Counter [R3][E2][127.0.1.1:8100][E2]No nodes in group Counter, [127.0.1.1:8101:0] [E2][127.0.1.1:8101][E2]No nodes in group Counter [R1][E2][127.0.1.1:8101][E2]No nodes in group Counter [R2][E2][127.0.1.1:8101][E2]No nodes in group Counter [R3][E2][127.0.1.1:8101][E2]No nodes in group Counter, [127.0.1.1:8102:0] [E2][127.0.1.1:8102][E2]No nodes in group Counter [R1][E2][127.0.1.1:8102][E2]No nodes in group Counter [R2][E2][127.0.1.1:8102][E2]No nodes in group Counter [R3][E2][127.0.1.1:8102][E2]No nodes in group Counter
I1003 07:02:33.621861 3978224 /root/wayne/braft/braft/example/counter/client.cpp:134] Sending Request to Counter (127.0.1.1:8100:0,127.0.1.1:8101:0,127.0.1.1:8102:0,) at qps=0 latency=0
W1003 07:02:33.649347 3978233 /root/wayne/braft/braft/example/counter/client.cpp:46] Fail to refresh_leader : [127.0.1.1:8100:0] [E2][127.0.1.1:8100][E2]No nodes in group Counter [R1][E2][127.0.1.1:8100][E2]No nodes in group Counter [R2][E2][127.0.1.1:8100][E2]No nodes in group Counter [R3][E2][127.0.1.1:8100][E2]No nodes in group Counter, [127.0.1.1:8101:0] [E2][127.0.1.1:8101][E2]No nodes in group Counter [R1][E2][127.0.1.1:8101][E2]No nodes in group Counter [R2][E2][127.0.1.1:8101][E2]No nodes in group Counter [R3][E2][127.0.1.1:8101][E2]No nodes in group Counter, [127.0.1.1:8102:0] [E2][127.0.1.1:8102][E2]No nodes in group Counter [R1][E2][127.0.1.1:8102][E2]No nodes in group Counter [R2][E2][127.0.1.1:8102][E2]No nodes in group Counter [R3][E2][127.0.1.1:8102][E2]No nodes in group Counter
I1003 07:02:34.622020 3978224 /root/wayne/braft/braft/example/counter/client.cpp:134] Sending Request to Counter (127.0.1.1:8100:0,127.0.1.1:8101:0,127.0.1.1:8102:0,) at qps=0 latency=0
W1003 07:02:34.652488 3978233 /root/wayne/braft/braft/example/counter/client.cpp:46] Fail to refresh_leader : [127.0.1.1:8100:0] [E2][127.0.1.1:8100][E2]No nodes in group Counter [R1][E2][127.0.1.1:8100][E2]No nodes in group Counter [R2][E2][127.0.1.1:8100][E2]No nodes in group Counter [R3][E2][127.0.1.1:8100][E2]No nodes in group Counter, [127.0.1.1:8101:0] [E2][127.0.1.1:8101][E2]No nodes in group Counter [R1][E2][127.0.1.1:8101][E2]No nodes in group Counter [R2][E2][127.0.1.1:8101][E2]No nodes in group Counter [R3][E2][127.0.1.1:8101][E2]No nodes in group Counter, [127.0.1.1:8102:0] [E2][127.0.1.1:8102][E2]No nodes in group Counter [R1][E2][127.0.1.1:8102][E2]No nodes in group Counter [R2][E2][127.0.1.1:8102][E2]No nodes in group Counter [R3][E2][127.0.1.1:8102][E2]No nodes in group Counter
I1003 07:02:35.622176 3978224 /root/wayne/braft/braft/example/counter/client.cpp:134] Sending Request to Counter (127.0.1.1:8100:0,127.0.1.1:8101:0,127.0.1.1:8102:0,) at qps=0 latency=0
W1003 07:02:35.655725 3978233 /root/wayne/braft/braft/example/counter/client.cpp:46] Fail to refresh_leader : [127.0.1.1:8100:0] [E2][127.0.1.1:8100][E2]No nodes in group Counter [R1][E2][127.0.1.1:8100][E2]No nodes in group Counter [R2][E2][127.0.1.1:8100][E2]No nodes in group Counter [R3][E2][127.0.1.1:8100][E2]No nodes in group Counter, [127.0.1.1:8101:0] [E2][127.0.1.1:8101][E2]No nodes in group Counter [R1][E2][127.0.1.1:8101][E2]No nodes in group Counter [R2][E2][127.0.1.1:8101][E2]No nodes in group Counter [R3][E2][127.0.1.1:8101][E2]No nodes in group Counter, [127.0.1.1:8102:0] [E2][127.0.1.1:8102][E2]No nodes in group Counter [R1][E2][127.0.1.1:8102][E2]No nodes in group Counter [R2][E2][127.0.1.1:8102][E2]No nodes in group Counter [R3][E2][127.0.1.1:8102][E2]No nodes in group Counter
I1003 07:02:36.622333 3978224 /root/wayne/braft/braft/example/counter/client.cpp:134] Sending Request to Counter (127.0.1.1:8100:0,127.0.1.1:8101:0,127.0.1.1:8102:0,) at qps=0 latency=0
W1003 07:02:36.658846 3978233 /root/wayne/braft/braft/example/counter/client.cpp:46] Fail to refresh_leader : [127.0.1.1:8100:0] [E2][127.0.1.1:8100][E2]No nodes in group Counter [R1][E2][127.0.1.1:8100][E2]No nodes in group Counter [R2][E2][127.0.1.1:8100][E2]No nodes in group Counter [R3][E2][127.0.1.1:8100][E2]No nodes in group Counter, [127.0.1.1:8101:0] [E2][127.0.1.1:8101][E2]No nodes in group Counter [R1][E2][127.0.1.1:8101][E2]No nodes in group Counter [R2][E2][127.0.1.1:8101][E2]No nodes in group Counter [R3][E2][127.0.1.1:8101][E2]No nodes in group Counter, [127.0.1.1:8102:0] [E2][127.0.1.1:8102][E2]No nodes in group Counter [R1][E2][127.0.1.1:8102][E2]No nodes in group Counter [R2][E2][127.0.1.1:8102][E2]No nodes in group Counter [R3][E2][127.0.1.1:8102][E2]No nodes in group Counter