This is an automated email from the ASF dual-hosted git repository.
williamsong pushed a change to branch snapshot-3
in repository https://gitbox.apache.org/repos/asf/ratis.git
from e6f255461 Change version for the version 3.0.1 -rc0
new cc038aea9 RATIS-2013. OrderedAsync retry results an
IllegalStateException in GrpcClientProtocolService. (#1026)
new 1691a3c0f RATIS-2012. Client should not retry after close. (#1025)
new f8f12d890 RATIS-2008. Follower should recognize candidate if the
candidate is the same peer as the current valid leader (#1024)
new 5baff19ff RATIS-2017: checkAndEvictCache must be done in writeLock.
(#1031)
new 5bb9e32e3 RATIS-2019 Fixed abnormal exit of StateMachineUpdater (#1033)
new d2e114eda RATIS-2044. Fix ReadIndex loss caused by data race in
AppendEntriesListeners (#1052)
new 50a5f18a0 RATIS-2047. Avoid unnecessary warn log when creating raft
group (#1054)
new ba6e1604d RATIS-2048. Fix SimpleStateMachineStorage potential NPE
exception (#1056)
new 21271d600 RATIS-2036. Avoid trigger snapshot when removing raftGroup
(#1055)
new cda87cee9 RATIS-2049. Suppress Sonar warning for volatile objects
(#1057)
new 52e8db697 RATIS-2050. Add creationGap param to snapshot management API
(#1058)
new 467a27ac6 update snapshot version
The 12 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
pom.xml | 4 +-
ratis-assembly/pom.xml | 2 +-
ratis-client/pom.xml | 2 +-
.../ratis/client/api/SnapshotManagementApi.java | 22 ++-
.../org/apache/ratis/client/impl/BlockingImpl.java | 12 +-
.../apache/ratis/client/impl/ClientProtoUtils.java | 5 +-
.../org/apache/ratis/client/impl/OrderedAsync.java | 101 ++++------
.../apache/ratis/client/impl/RaftClientImpl.java | 49 +++--
.../ratis/client/impl/SnapshotManagementImpl.java | 5 +-
.../apache/ratis/client/impl/UnorderedAsync.java | 14 +-
.../ratis/client/retry/ClientRetryEvent.java | 24 +--
ratis-common/pom.xml | 2 +-
.../ratis/protocol/SnapshotManagementRequest.java | 18 +-
.../main/java/org/apache/ratis/util/JavaUtils.java | 4 +
.../apache/ratis/util/MemoizedCheckedSupplier.java | 2 +
.../org/apache/ratis/util/MemoizedSupplier.java | 1 +
.../java/org/apache/ratis/util/PeerProxyMap.java | 17 +-
.../java/org/apache/ratis/util/SlidingWindow.java | 18 +-
ratis-docs/pom.xml | 2 +-
ratis-examples/pom.xml | 2 +-
.../apache/ratis/examples/debug/server/Server.java | 1 +
.../ratis/examples/filestore/cli/Client.java | 3 +
.../ratis/examples/membership/server/CServer.java | 4 +-
ratis-experiments/pom.xml | 2 +-
ratis-grpc/pom.xml | 2 +-
.../apache/ratis/grpc/server/GrpcLogAppender.java | 4 +-
ratis-metrics-api/pom.xml | 2 +-
ratis-metrics-default/pom.xml | 2 +-
ratis-metrics-dropwizard3/pom.xml | 2 +-
ratis-netty/pom.xml | 2 +-
ratis-proto/pom.xml | 2 +-
ratis-proto/src/main/proto/Raft.proto | 2 +-
ratis-replicated-map/pom.xml | 2 +-
ratis-resource-bundle/pom.xml | 2 +-
ratis-server-api/pom.xml | 2 +-
.../apache/ratis/server/RaftServerConfigKeys.java | 12 ++
.../apache/ratis/server/leader/LogAppender.java | 3 +-
ratis-server/pom.xml | 2 +-
.../apache/ratis/server/impl/LeaderStateImpl.java | 26 ++-
.../apache/ratis/server/impl/RaftServerImpl.java | 6 +-
.../ratis/server/impl/ReadIndexHeartbeats.java | 21 +-
.../apache/ratis/server/impl/RetryCacheImpl.java | 2 +-
.../ratis/server/impl/StateMachineUpdater.java | 28 ++-
.../org/apache/ratis/server/impl/VoteContext.java | 4 +-
.../server/raftlog/segmented/SegmentedRaftLog.java | 12 +-
.../ratis/server/storage/RaftStorageImpl.java | 17 +-
.../impl/SimpleStateMachineStorage.java | 2 +-
.../test/java/org/apache/ratis/RaftAsyncTests.java | 2 +-
.../test/java/org/apache/ratis/RaftBasicTests.java | 14 +-
.../test/java/org/apache/ratis/RaftTestUtil.java | 30 ++-
ratis-shell/pom.xml | 2 +-
ratis-test/pom.xml | 2 +-
.../org/apache/ratis/RaftLogTruncateTests.java | 216 +++++++++++++++++++++
...hGrpc.java => TestRaftLogTruncateWithGrpc.java} | 6 +-
.../org/apache/ratis/grpc/TestRaftWithGrpc.java | 6 -
.../ratis/retry/TestExceptionDependentRetry.java | 11 +-
.../org/apache/ratis/retry/TestRetryPolicy.java | 20 +-
.../apache/ratis/server/ServerRestartTests.java | 2 +-
.../ratis/server/storage/TestRaftStorage.java | 1 +
ratis-tools/pom.xml | 2 +-
60 files changed, 556 insertions(+), 233 deletions(-)
create mode 100644
ratis-test/src/test/java/org/apache/ratis/RaftLogTruncateTests.java
copy
ratis-test/src/test/java/org/apache/ratis/grpc/{TestRaftAsyncWithGrpc.java =>
TestRaftLogTruncateWithGrpc.java} (86%)