sofa-jraft icon indicating copy to clipboard operation
sofa-jraft copied to clipboard

A production-grade java implementation of RAFT consensus algorithm.

Results 89 sofa-jraft issues
Sort by recently updated
recently updated
newest added

I managed to hit an AssertionError in AppendEntriesRequestProcessor. Apparently, there is a race. The crash was observed on a custom branch, though the code in master is the same. ###...

### Your question Describe your question clearly ### Your scenes Describe your use scenes (why need this feature) ### Your advice Describe the advice or solution you'd like ### Environment...

### Motivation: In NodeImpl, the address is checked at the beginning. I don't think it needs to be checked again later. ``` if (this.serverId.getIp().equals(Utils.IP_ANY)) { LOG.error("Node can't started from IP_ANY.");...

cla:yes
size/XS

### Motivation: Explain the context, and why you're making that change. To make others understand what is the problem you're trying to solve. ### Modification: Describe the idea and modifications...

bug
cla:yes
size/XS

### Motivation: as titile ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #. If there is no issue then describe the changes introduced by this PR....

cla:yes
size/XS

集群环境: 3台ALiyun ECS 16C 32G Nacos-Server版本: 2.1.2 问题现象: Nacos-Server3台节点已经正常运行了半个月的时候,但是其中一台因为内存问题,我们不得不将其重启,我们将其命名为1节点,另外两台节点分别为2,3节点。 将1节点重启的方式是执行bin目录下的shutdown脚本,然后执行bin下的startup脚本,这个时候我们发现了问题。 从Nacos控制台查看,1节点显示某一个服务有45个实例,2,3节点显示这个服务有65个实例(后经查实,65个实例是正常的)。 也就是说1节点的数据有问题, 我们查看日志。发现 alipay-jraft日志有错误: 2024-06-19 00:16:35,087 WARN Node RequestVote to [10.254.18.46:7848](http://10.254.18.46:7848/) error: Status[EINTERNAL: RPC exception:UNKNOWN]. 2024-06-19 00:16:35,707 WARN Fail to...

### Your question 假设一开始的节点是 123,leader 是 1. 然后 changePeers 是 345. 1. 45 catchup 2. 12、45 apply C new & C old 3. 12、45 apply C new 4. client 收到...

### Describe the bug There is a deadlock in `NodeImpl` when working with full `LogManagerImpl#diskQueue`, `FSMCallerImpl#taskQueue` and `NodeImpl#writeLock`. 1. `NodeImpl#executeApplyingTasks()` takes `NodeImpl.writeLock` and calls `LogManager.appendEntries()` 2. `LogManager` tries to enqueue...

[hostname=jraft-02-74d9bddb68-c4hfv][appname=jraft][][][2024-06-05T17:08:20.634+0800][metrics-logger-reporter-1-thread-1][INFO][Slf4jReporter.java,473,log] [type=GAUGE, name=jraft-fsm-caller-disruptor.buffer-size, value=16384] ## '' [hostname=jraft-02-74d9bddb68-c4hfv][appname=jraft][][][2024-06-05T17:08:20.634+0800][metrics-logger-reporter-1-thread-1][INFO][Slf4jReporter.java,473,log] [type=GAUGE, name=jraft-fsm-caller-disruptor.remaining-capacity, value=16361] ## '' [hostname=jraft-02-74d9bddb68-c4hfv][appname=jraft][][][2024-06-05T17:08:20.634+0800][metrics-logger-reporter-1-thread-1][INFO][Slf4jReporter.java,473,log] [type=GAUGE, name=jraft-log-manager-disruptor.buffer-size, value=16384] ## '' [hostname=jraft-02-74d9bddb68-c4hfv][appname=jraft][][][2024-06-05T17:08:20.634+0800][metrics-logger-reporter-1-thread-1][INFO][Slf4jReporter.java,473,log] [type=GAUGE, name=jraft-log-manager-disruptor.remaining-capacity, value=16383] ## '' [hostname=jraft-02-74d9bddb68-c4hfv][appname=jraft][][][2024-06-05T17:08:20.634+0800][metrics-logger-reporter-1-thread-1][INFO][Slf4jReporter.java,473,log] [type=GAUGE, name=jraft-node-impl-disruptor.buffer-size, value=16384] ## ''...