Mirza Aliev created IGNITE-19960:
------------------------------------
Summary: Backport 1.3.10 release form the JRaft
Key: IGNITE-19960
URL: https://issues.apache.org/jira/browse/IGNITE-19960
Project: Ignite
Issue Type: Task
Reporter: Mirza Aliev
In this task, we need to backport commits from 1.3.10 release from original
JRaft repo.
The main driver of this activity is backpressure feature for task applying for
Node#apply(task) and Node#readIndex(task) which determines submitting tasks to
node in blocking or non-blocking mode, ApplyTaskMode.NonBlocking by default. In
blocking mode, it will block the invocation to these two methods when node is
overloaded, and throws OverloadException immediately in non-blocking mode
instead.
Also there are some minor bug fixes.
There is a list of commits to backport:
||Commit message||Link||
|use atomic move to avoid file corruption (#745)|
https://github.com/sofastack/sofa-jraft/commit/1a9df327afcba7c1b1a5cc527531ae70812c309f|
|Support a config to make read index read failfast. (#738)|
https://github.com/sofastack/sofa-jraft/commit/4f027979bffb6fb329934f97647ffee44cb76f96|
|(feat) Adds sliceData and getReadOnlyData methods to LogEntry, #755 (#762)|
https://github.com/sofastack/sofa-jraft/commit/75dad4bb4ad6e76927d9c0db6baf83bfc5368306|
|Feature/backpressure (#764) Adds ApplyTaskMode to apply task in blocking or
non-blocking mode, and improve disruptor usage|
https://github.com/sofastack/sofa-jraft/commit/5de2fbbcabb70ddbefb06a1d3737821781c3e85c|
|(feat) Use deleteFilesInRange/compactRange to replace deleteRange in … (#769)|
https://github.com/sofastack/sofa-jraft/commit/e9ae4e477576fd98d9dd539faf7470b6b938e98b|
|(fix) ClassCastException in SnapshotExecutorImpl, #728 (#775)|
https://github.com/sofastack/sofa-jraft/commit/0eaaf957e42051ae82a504f1d6676b7d02d460f2|
|(fix) refactor ThreadId and fix #781 (#783)|
https://github.com/sofastack/sofa-jraft/commit/530224e398b43d22e60ab444bddb819f1e838241|
|Feature/fix node test (#790)|
https://github.com/sofastack/sofa-jraft/commit/f69e7e9e9b2d048d73ab40844ae78fd62a559277|
--
This message was sent by Atlassian Jira
(v8.20.10#820010)