LittleHealth opened a new pull request, #19279:
URL: https://github.com/apache/iotdb/pull/19279

   This replaces the earlier TRaft implementation on `research/traft` with the 
partition-based implementation extracted from fixed functional source 
`374f166686f5ce8b7ee161289b31d08f1b09323e`.
   
   The branch includes its complete research Raft common dependency; this PR 
does not require merging another personal branch first. Apache ancestry is 
preserved from `6de79acdbe7f0576eaf57bf218e7162ea5e37031`. ParallelRaft and 
LSM-Raft implementations and their registrations are excluded.
   
   The implementation separates entry storage, proposal completeness, durable 
acknowledgment, commitment, and successful state-machine application. The 
synchronous journal pipeline overlaps replication with local force while 
preserving durable acknowledgment gates. Shared integration covers request 
normalization, routing, consensus-log recovery, portable snapshots, 
configuration and metrics. Existing Ratis and IoTConsensus registrations remain 
available.
   
   Use fresh data directories. Compatibility with the removed implementation's 
journal, snapshots or RPC is not established; in-place upgrades and 
mixed-version operation are not supported. The fixed source's defaults and 
existing pipeline optimizations are retained. Later experimental 
message-coalescing patches are excluded. A client timeout does not guarantee 
cancellation of an admitted write.
   
   Validation on macOS arm64 with OpenJDK 21 and Maven 3.9.6:
   
   - 231 unique TRaft core/runtime cases passed, including the full default 
randomized fault/compaction ranges.
   - 3 DataNode request-semantics and 2 protocol-classification cases passed.
   - A clean 35-module reactor generated the Thrift bindings and passed 
Checkstyle, Spotless, dependency analysis and Apache RAT.
   - A real three-DataNode test verified 272 ordered/reverse-timestamp 
single-point values, endpoint readback, forced restart and post-restart writes: 
one executed test, no failures/errors/skips.
   - The initial sparse-recovery fixture failed during setup: it used 400–800 
ms election timers with the production 1000 ms force window. The fixture now 
explicitly uses 10 ms; all 20 affected RPC cases passed on both rerun 
executions. Production defaults and assertions are unchanged.
   - The inherited TsFile snapshot now returns HTTP 404. A checksum-pinned 
Apache source bootstrap rebuilds its original Maven coordinates without 
vendoring dependencies. All 1022 TsFile classes match the original cached 
artifact; only Manifest metadata differs. The common JAR is byte-identical. 
Bootstrap build/install passed.
   
   English design, source correspondence, commands and detailed validation 
records are under `iotdb-core/consensus/docs/`, notably 
`research-traft-design.md`, `traft-impl-source-map.md`, 
`traft-impl-validation.md` and `research-dependency-build.md`.
   
   This is a research implementation publication. No performance matrix was 
rerun, and these tests do not certify hardware power-loss behavior, 
mixed-version upgrades or production readiness.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to