This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a change to branch snapshot-3
in repository https://gitbox.apache.org/repos/asf/ratis.git
discard 59b40376e RATIS-2242 change consistency criteria of heartbeat during
appendLog (#1215)
discard 29fbc50d4 RATIS-2245. Ratis should wait for all apply transaction
futures before taking snapshot and group remove (#1218)
discard b72642204 RATIS-2244. Reduce the number of log messages during
bootstrap (#1217)
discard 6708ab940 RATIS-2240. updatePurgeIndex doesn't need to hold
RaftLogBase.writeLock (#1214)
add 58af52ed7 RATIS-2167. Add default value in TermIndex (#1161)
add 3e6cc2303 RATIS-2169. mvnw test: Corrupted STDOUT by directly writing
to native stream in forked JVM 1 (#1162)
add 35aefb42a RATIS-2168. Support custom gRPC services. (#1169)
add 8b7bf6ee8 RATIS-2182. Fix some Objects.requireNonNull messages (#1172)
add 461c7a632 RATIS-2237. Add getFollowerMatchIndices interface for
DivisionInfo
add 44874c19e RATIS-2239. Publish build scans to develocity.apache.org
(#1212)
add bc5416828 RATIS-2240. updatePurgeIndex doesn't need to hold
RaftLogBase.writeLock (#1214)
add 0518c6d49 RATIS-2244. Reduce the number of log messages during
bootstrap (#1217)
add df3623d8a RATIS-2247. Bump GitHub Actions runner to ubuntu-24.04
(#1219)
add a547da6ef RATIS-2248. Rename CI workflows to .yaml (#1220)
add 67935d6ba RATIS-2249. Remove unused shellcheck.sh (#1221)
add 904a75e9f RATIS-2245. Ratis should wait for all apply transaction
futures before taking snapshot and group remove (#1218)
add 5d3476f27 RATIS-2242. change consistency criteria of heartbeat during
appendLog (#1215)
add 0897de162 RATIS-2252. Replace JUnitRunListener with
JUnit5TestExecutionListener (#1228)
add 9400a1d13 RATIS-2217. Automatically re-try flaky tests in CI (#1229)
add 5aa4fa443 RATIS-2254. Replace junit 4 Timeout with junit 5. (#1230)
add 2be281db8 RATIS-2022. Replace some Guava usage with builtins (#1231)
add 582e46403 RATIS-2124. Remove the use of org.junit.Rule. (#1232)
add 5839a4753 RATIS-2256. Update Maven to 3.9.9 (#1234)
add c51f09d03 RATIS-2255. Migrate ratis-grpc to junit 5. (#1233)
add 0b20accf0 RATIS-2261. Mark TestRaftSnapshotWithGrpc as flaky
add a1bc45619 RATIS-2262. Mark RaftBasicTests#testStateMachineMetrics as
flaky
add f80e00411 RATIS-2260. AtomicFileOutputStream should truncate temp file
(#1237)
add dcef0fddb RATIS-2263. Bump sonar-maven-plugin to 5.0.0.4389 (#1238)
add 0484847d7 RATIS-2258. Caching TermIndex objects (#1239)
add 896ed4fe3 RATIS-2266. Use WeakValueCache instead of Guava cache in
RaftId. (#1240)
add 311966308 RATIS-2268. A minor documatention fix for method
getSuccessors. (#1242)
add f21e350d4 RATIS-2269. Remove all import java.util.* statements. (#1243)
add 8097b8644 RATIS-2209. Exercise make_rc.sh in CI (#1244)
add b8cc94740 RATIS-2271. Leadership Loss Causes
ClosedByInterruptException and NullPointerException in LogAppender Thread
(#1245)
add c1301b082 RATIS-2274. Newly added peer may retain outdated
configuration after membership change, causing election failure. (#1246)
add 2c16ccb44 RATIS-2282. LogAppender Restart Due to Premature Log Entry
Access During Concurrent Write Processing (#1249)
add 39acebf88 RATIS-2278. Follower Fails to Append Entries Due to Index
Validation Race Condition in NavigableIndices (#1248)
add 21ce4e1fd RATIS-2283. GrpcLogAppender Thread Restart Leaves
catchup=false, Blocking Reconfiguration Progress (#1250)
add dc467933f RATIS-2285. Bump ratis-thirdparty to 1.0.9 (#1252)
add 58d5e4cfe RATIS-2286. Generate the necessary unified names for the
submodules under RaftServerImpl (#1251)
add 399a5c39f RATIS-2287. Improve RaftServerImpl#toString() to make it
more readable (#1253)
add 1f6a467a3 RATIS-2289. Coverage is 0% due to no execution data files
provided (#1255)
add fd14f9014 RATIS-2180. Use Objects.requireNonNull instead of
Preconditions.assertNotNull (#1256)
add 464b468c4 RATIS-2291. Fix failing
TestInstallSnapshotNotificationWithGrpc#testAddNewFollowersNoSnapshot. (#1257)
add 0cbf69018 RATIS-2290. Simply the EventQueue in leader (#1258)
add ff16e8249 RATIS-1995. Prevent data loss when a storage is accidentally
re-formatted. (#1261)
add 697002d5e RATIS-2293. Fix typo in ClientProtoUtils (#1263)
add 6fc3dd032 RATIS-2294. Fix NettyClientRpc exception and timeout
handling (#1264)
add 7e22578d7 RATIS-2251. Migrate ratis-test tests to Junit 5 - Part 3.
(#1227)
add 1f4be875d RATIS-2304. SnapshotManager should validate snapshot file
path (#1268)
add 4c34d75df RATIS-2297. Set default commit message to PR title (#1265)
add a4582726f RATIS-2303. Migrate ratis-examples tests to Junit 5. (#1267)
add 371f68cad RATIS-1977. Remove Junit 4 dependencies. (#1269)
add af42d0518 RATIS-2305. Add a security doc. (#1270)
add 848cd394c RATIS-2308. Remove the unused gRPC TLS confs. (#1271)
add 3612bcaf7 RATIS-2221. Remove ratis-replicated-map module (#1260)
add 15e1d9214 RATIS-2310. Implement hashCode and equals method for
SizeInBytes class. (#1272)
add b73c44caa RATIS-2314. Fix that SegmentedRaftLogWorker may append entry
by itself. (#1274)
add d824c4e88 RATIS-2317. Move acquire PendingRequestPermit out of
synchronized block in RaftServerImpl#appendTransaction. (#1275)
add 6d471e649 RATIS-2321. Fix NPE in ServerState after continuous leader
changes (#1280)
new 288432baf release 3.2.1-6d471e6-SNAPSHOT
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (59b40376e)
\
N -- N -- N refs/heads/snapshot-3 (288432baf)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 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:
.asf.yaml | 1 +
.github/workflows/{check.yml => check.yaml} | 6 +-
.github/workflows/{ci.yml => ci.yaml} | 23 +-
.../{post-commit.yml => post-commit.yaml} | 2 +-
.../{repeat-test.yml => repeat-test.yaml} | 6 +-
.mvn/develocity.xml | 17 +-
.mvn/extensions.xml | 2 +-
.mvn/wrapper/maven-wrapper.properties | 5 +-
dev-support/checks/release.sh | 49 +++
dev-support/checks/shellcheck.sh | 37 --
dev-support/checks/sonar.sh | 2 +-
dev-support/checks/unit.sh | 4 +
dev-support/make_rc.sh | 7 +-
mvnw | 435 +++++++++------------
mvnw.cmd | 304 ++++++--------
pom.xml | 77 ++--
ratis-assembly/pom.xml | 14 +-
ratis-assembly/src/main/assembly/bin.xml | 1 -
ratis-assembly/src/main/assembly/src.xml | 1 -
ratis-client/pom.xml | 7 +-
.../apache/ratis/client/impl/ClientProtoUtils.java | 6 +-
ratis-common/pom.xml | 13 +-
.../main/java/org/apache/ratis/conf/ConfUtils.java | 4 +-
.../java/org/apache/ratis/protocol/ClientId.java | 7 +-
.../apache/ratis/protocol/RaftClientMessage.java | 9 +-
.../java/org/apache/ratis/protocol/RaftGroup.java | 8 +-
.../org/apache/ratis/protocol/RaftGroupId.java | 7 +-
.../java/org/apache/ratis/protocol/RaftId.java | 24 +-
.../ratis/retry/ExponentialBackoffRetry.java | 4 +-
.../apache/ratis/util/AtomicFileOutputStream.java | 7 +-
.../org/apache/ratis/util/BiWeakValueCache.java | 146 +++++++
.../org/apache/ratis/util/CollectionUtils.java | 9 +-
.../main/java/org/apache/ratis/util/FileUtils.java | 46 ++-
.../main/java/org/apache/ratis/util/JavaUtils.java | 6 +-
.../main/java/org/apache/ratis/util/NetUtils.java | 8 +-
.../org/apache/ratis/util/ReflectionUtils.java | 10 +-
.../java/org/apache/ratis/util/SizeInBytes.java | 14 +-
.../java/org/apache/ratis/util/TimeDuration.java | 4 +-
.../java/org/apache/ratis/util/WeakValueCache.java | 89 +++++
.../src/test/java/org/apache/ratis/BaseTest.java | 61 +--
.../apache/ratis/JUnit5TestExecutionListener.java | 51 +++
.../java/org/apache/ratis/JUnitRunListener.java | 91 -----
.../test/java/org/apache/ratis/test/tag/Flaky.java | 37 +-
.../java/org/apache/ratis/test/tag/FlakyTest.java | 20 +-
.../java/org/apache/ratis/util/TestFileUtils.java | 26 ++
.../org/apache/ratis/util/TestRefCountingMap.java | 6 +-
...g.junit.platform.launcher.TestExecutionListener | 6 +-
ratis-docs/pom.xml | 8 +-
ratis-docs/src/site/markdown/security.md | 46 +++
ratis-examples/pom.xml | 7 +-
.../java/org/apache/ratis/TestMultiRaftGroup.java | 4 +
.../ratis/examples/ParameterizedBaseTest.java | 7 +-
.../arithmetic/expression/TestExpression.java | 9 +-
.../examples/filestore/FileStoreAsyncBaseTest.java | 8 +-
.../examples/filestore/FileStoreBaseTest.java | 30 +-
.../filestore/FileStoreStreamingBaseTest.java | 12 +-
.../ratis/examples/filestore/FileStoreWriter.java | 20 +-
.../ratis/server/impl/TestReadAfterWrite.java | 20 +-
ratis-experiments/pom.xml | 7 +-
ratis-grpc/pom.xml | 10 +-
.../java/org/apache/ratis/grpc/GrpcConfigKeys.java | 70 ++--
.../java/org/apache/ratis/grpc/GrpcFactory.java | 19 +-
.../apache/ratis/grpc/server/GrpcLogAppender.java | 16 +-
.../org/apache/ratis/grpc/server/GrpcServices.java | 56 +++
.../{GrpcService.java => GrpcServicesImpl.java} | 43 +-
.../apache/ratis/grpc/MiniRaftClusterWithGrpc.java | 4 +-
ratis-metrics-api/pom.xml | 7 +-
ratis-metrics-default/pom.xml | 7 +-
ratis-metrics-dropwizard3/pom.xml | 7 +-
ratis-netty/pom.xml | 7 +-
.../apache/ratis/netty/client/NettyClientRpc.java | 48 ++-
.../ratis/netty/client/NettyClientStreamRpc.java | 5 +-
.../ratis/netty/server/DataStreamManagement.java | 2 +-
ratis-proto/pom.xml | 8 +-
ratis-proto/src/main/proto/RMap.proto | 189 ---------
ratis-proto/src/main/proto/Raft.proto | 1 +
ratis-replicated-map/README.md | 36 --
ratis-replicated-map/pom.xml | 93 -----
.../src/test/resources/log4j.properties | 18 -
ratis-resource-bundle/pom.xml | 2 +-
ratis-server-api/pom.xml | 7 +-
.../java/org/apache/ratis/server/DivisionInfo.java | 6 +
.../apache/ratis/server/leader/LogAppender.java | 2 +-
.../apache/ratis/server/protocol/TermIndex.java | 120 ++++--
.../ratis/statemachine/TransactionContext.java | 2 +-
ratis-server/pom.xml | 12 +-
.../ratis/server/impl/ConfigurationManager.java | 5 +-
.../apache/ratis/server/impl/FollowerState.java | 4 +-
.../apache/ratis/server/impl/LeaderElection.java | 194 +++++++--
.../apache/ratis/server/impl/LeaderStateImpl.java | 60 +--
.../apache/ratis/server/impl/PendingRequest.java | 2 +-
.../ratis/server/impl/RaftConfigurationImpl.java | 10 +-
.../apache/ratis/server/impl/RaftServerImpl.java | 82 ++--
.../apache/ratis/server/impl/RaftServerProxy.java | 18 +-
.../apache/ratis/server/impl/RetryCacheImpl.java | 13 +-
.../apache/ratis/server/impl/ServerImplUtils.java | 24 +-
.../apache/ratis/server/impl/ServerProtoUtils.java | 4 +-
.../org/apache/ratis/server/impl/ServerState.java | 2 +-
.../ratis/server/impl/StateMachineUpdater.java | 5 +-
.../ratis/server/raftlog/segmented/LogSegment.java | 12 +-
.../raftlog/segmented/SegmentedRaftLogCache.java | 12 +-
.../segmented/SegmentedRaftLogInputStream.java | 7 +-
.../raftlog/segmented/SegmentedRaftLogReader.java | 10 +-
.../raftlog/segmented/SegmentedRaftLogWorker.java | 4 +-
.../ratis/server/storage/SnapshotManager.java | 8 +-
.../ratis/server/util/ServerStringUtils.java | 14 +-
.../ratis/statemachine/impl/BaseStateMachine.java | 2 +-
.../ratis/InstallSnapshotNotificationTests.java | 80 ++--
.../java/org/apache/ratis/LogAppenderTests.java | 14 +-
.../org/apache/ratis/MessageStreamApiTests.java | 16 +-
.../org/apache/ratis/OutputStreamBaseTest.java | 30 +-
.../org/apache/ratis/RaftAsyncExceptionTests.java | 14 +-
.../test/java/org/apache/ratis/RaftAsyncTests.java | 72 ++--
.../test/java/org/apache/ratis/RaftBasicTests.java | 4 +-
.../org/apache/ratis/RaftExceptionBaseTest.java | 24 +-
.../test/java/org/apache/ratis/RaftTestUtil.java | 66 +++-
.../org/apache/ratis/ReadOnlyRequestTests.java | 46 +--
.../ratis/ReadOnlyRequestWithLongTimeoutTests.java | 20 +-
.../apache/ratis/RequestLimitAsyncBaseTest.java | 8 +-
.../org/apache/ratis/TestReConfigProperty.java | 142 +++----
.../java/org/apache/ratis/WatchRequestTests.java | 62 +--
.../ratis/server/impl/GroupInfoBaseTest.java | 12 +-
.../ratis/server/impl/GroupManagementBaseTest.java | 72 ++--
.../ratis/server/impl/LeaderElectionTests.java | 154 ++++----
.../apache/ratis/server/impl/LogMetadataTests.java | 6 +-
.../apache/ratis/server/impl/MiniRaftCluster.java | 14 +-
.../server/impl/PreAppendLeaderStepDownTest.java | 14 +-
.../server/impl/RaftReconfigurationBaseTest.java | 99 ++---
.../ratis/server/impl/RaftServerTestUtil.java | 22 +-
.../impl/RaftStateMachineExceptionTests.java | 32 +-
.../ratis/server/impl/RetryCacheTestUtil.java | 4 +-
.../ratis/server/impl/ServerPauseResumeTest.java | 22 +-
.../server/impl/StateMachineShutdownTests.java | 37 +-
.../server/impl/TestRatisServerMetricsBase.java | 8 +-
.../server/simulation/SimulatedRequestReply.java | 6 +-
.../ratis/statemachine/RaftSnapshotBaseTest.java | 50 +--
.../ratis/statemachine/SnapshotManagementTest.java | 44 +--
ratis-shell/pom.xml | 7 +-
ratis-test/pom.xml | 12 +-
.../org/apache/ratis/RaftLogTruncateTests.java | 7 +-
.../datastream/DataStreamAsyncClusterTests.java | 7 +-
.../ratis/datastream/DataStreamTestUtils.java | 2 +-
.../apache/ratis/grpc/TestCustomGrpcServices.java | 205 ++++++++++
.../apache/ratis/grpc/TestRaftAsyncWithGrpc.java | 2 +
.../apache/ratis/grpc/TestRaftServerWithGrpc.java | 6 +-
.../ratis/grpc/TestRaftSnapshotWithGrpc.java | 2 +
.../org/apache/ratis/grpc/TestRaftWithGrpc.java | 4 +
.../grpc/{ => server}/TestGrpcMessageMetrics.java | 8 +-
.../apache/ratis/netty/TestRaftAsyncWithNetty.java | 2 +
.../java/org/apache/ratis/protocol/TestRaftId.java | 8 +
.../ratis/retry/TestMultipleLinearRandomRetry.java | 7 +-
.../org/apache/ratis/retry/TestRetryPolicy.java | 7 +-
.../org/apache/ratis/server/ServerBuilderTest.java | 4 +-
.../impl/TestLeaderElectionServerInterface.java | 193 +++++++++
.../ratis/server/protocol/ProtocolTestUtils.java | 15 +-
.../segmented/TestSegmentedRaftLogCache.java | 2 +-
.../ratis/shell/cli/sh/TestSecureRatisShell.java | 2 -
.../java/org/apache/ratis/util/TestLifeCycle.java | 6 +-
.../org/apache/ratis/util/TestRaftIdCache.java | 129 ++++++
.../java/org/apache/ratis/util/TestTermIndex.java | 100 +++++
ratis-tools/pom.xml | 7 +-
161 files changed, 3063 insertions(+), 2061 deletions(-)
rename .github/workflows/{check.yml => check.yaml} (97%)
rename .github/workflows/{ci.yml => ci.yaml} (88%)
rename .github/workflows/{post-commit.yml => post-commit.yaml} (96%)
rename .github/workflows/{repeat-test.yml => repeat-test.yaml} (98%)
create mode 100755 dev-support/checks/release.sh
delete mode 100755 dev-support/checks/shellcheck.sh
create mode 100644
ratis-common/src/main/java/org/apache/ratis/util/BiWeakValueCache.java
create mode 100644
ratis-common/src/main/java/org/apache/ratis/util/WeakValueCache.java
create mode 100644
ratis-common/src/test/java/org/apache/ratis/JUnit5TestExecutionListener.java
delete mode 100644
ratis-common/src/test/java/org/apache/ratis/JUnitRunListener.java
copy
ratis-examples/src/main/java/org/apache/ratis/examples/filestore/cli/FileStore.java
=> ratis-common/src/test/java/org/apache/ratis/test/tag/Flaky.java (54%)
copy
ratis-metrics-default/src/main/java/org/apache/ratis/metrics/impl/MetricRegistryFactoryImpl.java
=> ratis-common/src/test/java/org/apache/ratis/test/tag/FlakyTest.java (69%)
copy .mvn/wrapper/maven-wrapper.properties =>
ratis-common/src/test/resources/META-INF/services/org.junit.platform.launcher.TestExecutionListener
(72%)
create mode 100644 ratis-docs/src/site/markdown/security.md
create mode 100644
ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcServices.java
rename ratis-grpc/src/main/java/org/apache/ratis/grpc/server/{GrpcService.java
=> GrpcServicesImpl.java} (91%)
delete mode 100644 ratis-proto/src/main/proto/RMap.proto
delete mode 100644 ratis-replicated-map/README.md
delete mode 100644 ratis-replicated-map/pom.xml
delete mode 100644 ratis-replicated-map/src/test/resources/log4j.properties
create mode 100644
ratis-test/src/test/java/org/apache/ratis/grpc/TestCustomGrpcServices.java
rename ratis-test/src/test/java/org/apache/ratis/grpc/{ =>
server}/TestGrpcMessageMetrics.java (91%)
create mode 100644
ratis-test/src/test/java/org/apache/ratis/server/impl/TestLeaderElectionServerInterface.java
copy
ratis-common/src/main/java/org/apache/ratis/protocol/exceptions/StreamException.java
=>
ratis-test/src/test/java/org/apache/ratis/server/protocol/ProtocolTestUtils.java
(77%)
create mode 100644
ratis-test/src/test/java/org/apache/ratis/util/TestRaftIdCache.java
create mode 100644
ratis-test/src/test/java/org/apache/ratis/util/TestTermIndex.java