cita-cloud / consensus_raft

The raft consensus component for CITA Cloud.
Apache License 2.0
3 stars 0 forks source link

consensus单独重启后raft会卡住 #73

Closed rink1969 closed 1 year ago

rink1969 commented 1 year ago
Feb 13 20:25:26.441 INFO registering network msg handler..., tag: network, module: consensus::client:172                                                                                                                                                                                   │
│ Feb 13 20:25:26.445 INFO network msg handler registered., tag: network, module: consensus::client:187                                                                                                                                                                                      │
│ Feb 13 20:25:26.446 INFO grpc port of consensus_raft: 50001, module: consensus::peer:133                                                                                                                                                                                                   │
│ Feb 13 20:25:26.446 INFO start consensus_raft grpc server, module: consensus::peer:152                                                                                                                                                                                                     │
│ Feb 13 20:25:26.447 INFO apply_snapshot index: 368 conf_state: ConfState { voters: [9063134360811404448, 2839943415174506970, 4761232580302610953, 7222868942565220257], learners: [], voters_outgoing: [], learners_next: [], auto_leave: false }, tag: storage, module: consensus::stora │
│ Feb 13 20:25:26.447 WARN recover_from_snapshot, tag: storage, module: consensus::storage:85                                                                                                                                                                                                │
│ Feb 13 20:25:26.447 INFO metrics on, module: consensus::peer:155                                                                                                                                                                                                                           │
│ Feb 13 20:25:26.454 WARN recover entry index: 369, applied: 368, tag: storage, module: consensus::storage:104                                                                                                                                                                              │
│ Feb 13 20:25:26.454 INFO waiting for `reconfigure` from controller.., module: consensus::peer:197 

虽然之前加了ping_controller 的逻辑,但是是加在peers run里面的,现在卡住是在peers setup里 ping_controller 的逻辑太靠后了,应该提前

Jayanring commented 1 year ago

看日志是consensus重启