This is an automated email from the ASF dual-hosted git repository.
dragonyliu pushed a change to branch branch-2
in repository https://gitbox.apache.org/repos/asf/ratis.git
from 3ce2c5949 RATIS-1691. Potential deadlock in server shutdown (#729)
new 4332b0fe2 Revert "RATIS-1677. Do not auto format RaftStorage in
RECOVER. (#718)"
new c596fd338 RATIS-1695. Use a Builder for Daemon (#747)
new 58389a6ef RATIS-1709 Support specify ThreadGroup for Daemon threads
(#733)
The 3 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:
.../ratis/client/api/GroupManagementApi.java | 12 +-
.../apache/ratis/client/impl/ClientProtoUtils.java | 9 +-
.../ratis/client/impl/GroupManagementImpl.java | 4 +-
.../ratis/protocol/GroupManagementRequest.java | 13 +-
.../main/java/org/apache/ratis/util/Daemon.java | 43 ++++--
.../org/apache/ratis/util/JvmPauseMonitor.java | 5 +-
.../apache/ratis/util/MemoizedCheckedSupplier.java | 90 ------------
.../java/org/apache/ratis/util/Preconditions.java | 5 -
.../java/org/apache/ratis/util/SizeInBytes.java | 1 -
.../org/apache/ratis/util/TimeoutScheduler.java | 6 +-
ratis-proto/src/main/proto/Raft.proto | 1 -
.../java/org/apache/ratis/server/RaftServer.java | 35 +++--
.../apache/ratis/server/storage/RaftStorage.java | 5 +-
.../apache/ratis/server/impl/FollowerState.java | 8 +-
.../apache/ratis/server/impl/LeaderElection.java | 6 +-
.../apache/ratis/server/impl/LeaderStateImpl.java | 7 +-
.../apache/ratis/server/impl/RaftServerImpl.java | 18 ++-
.../apache/ratis/server/impl/RaftServerProxy.java | 34 +++--
.../apache/ratis/server/impl/ServerImplUtils.java | 15 +-
.../org/apache/ratis/server/impl/ServerState.java | 128 +++++++++++------
.../ratis/server/impl/StateMachineUpdater.java | 4 +-
.../ratis/server/leader/LogAppenderDaemon.java | 3 +-
.../server/storage/RaftStorageDirectoryImpl.java | 7 +-
.../ratis/server/storage/RaftStorageImpl.java | 10 +-
.../ratis/server/storage/SnapshotManager.java | 12 +-
.../ratis/server/storage/StorageImplUtils.java | 160 +++------------------
.../apache/ratis/server/impl/MiniRaftCluster.java | 11 +-
.../server/impl/RaftReconfigurationBaseTest.java | 4 +-
.../ratis/server/simulation/RequestHandler.java | 1 +
.../server/simulation/SimulatedServerRpc.java | 5 +-
.../statemachine/SimpleStateMachine4Testing.java | 4 +-
.../TestServerState.java} | 27 ++--
.../ratis/server/storage/TestRaftStorage.java | 6 +-
33 files changed, 279 insertions(+), 420 deletions(-)
delete mode 100644
ratis-common/src/main/java/org/apache/ratis/util/MemoizedCheckedSupplier.java
rename
ratis-test/src/test/java/org/apache/ratis/server/{storage/TestStorageImplUtils.java
=> impl/TestServerState.java} (82%)