Attila Doroszlai created RATIS-1797:
---------------------------------------

             Summary: Backport to branch-2 for 2.5.0
                 Key: RATIS-1797
                 URL: https://issues.apache.org/jira/browse/RATIS-1797
             Project: Ratis
          Issue Type: Task
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


Started backporting the changes from {{master}} to {{branch-2}} as discussed in 
dev list:

https://lists.apache.org/thread/4b79xvpqbvwodz590vyo7g5w5yhvj66l:
 * RATIS-1763. Purging logs in an ordered manner.
 * RATIS-1764. [GrpcLogAppender] create parent directory when installSnapshot
 * RATIS-1765. [GrpcLogAppender] Calculate streaming md5 file-wise when
installSnapshot
 * RATIS-1767. Initialize MatchIndex to RaftLog.INVALID_LOG_INDEX.
 * RATIS-1786. Reset the digester of the follower at the beginning of each
file transfer during a InstallSnapshot to avoid snapshot transfer failure

https://lists.apache.org/thread/8mkkc7zkmw61lc8khytotnmc9tnrshgt:
 * RATIS-1643. Add heartbeat broadcast mechanism for leader readIndex
 * RATIS-1696. Support linearizable read-only requests in leader
 * RATIS-1701. Add new Server RPC: readIndex
 * RATIS-1706. Move heartbeat listeners to LeaderState
 * RATIS-1715. Support linearizable read in AsyncApi
 * RATIS-1716. Separate ReadException and ReadIndexException for client retry
 * RATIS-1758. Add linearizable read in Counter example
 * RATIS-1759. Support client use linearizable read per request
 * RATIS-1773. Fix readIndexHeartbeat using incorrct index handle 
onAppendEntriesReply method
 * RATIS-1778. Fix NPE in readIndexHeartbeats

Fixed [failing 
{{TestReadOnlyRequestWithGrpc}}|https://github.com/adoroszlai/incubator-ratis/actions/runs/4292911582/jobs/7479932305#step:5:1849]
 by also backporting:
 * RATIS-1733. Typo: fix misleading params names in `RaftServerConfigKeys`
 * RATIS-1744. NullPointerException causes RaftClient retry failure.

Now there is only one test that is failing consistently:

{code:title=https://github.com/adoroszlai/incubator-ratis/actions/runs/4293864688/jobs/7482109629#step:5:504}
Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 14.227 s <<< 
FAILURE! - in org.apache.ratis.grpc.TestLeaderInstallSnapshot
testMultiFileInstallSnapshot[0](org.apache.ratis.grpc.TestLeaderInstallSnapshot)
  Time elapsed: 6.869 s  <<< FAILURE!
java.lang.AssertionError
        at org.junit.Assert.fail(Assert.java:87)
        at org.junit.Assert.assertTrue(Assert.java:42)
        at org.junit.Assert.assertNotNull(Assert.java:713)
        at org.junit.Assert.assertNotNull(Assert.java:723)
        at 
org.apache.ratis.InstallSnapshotFromLeaderTests.testMultiFileInstallSnapshot(InstallSnapshotFromLeaderTests.java:121)
        at 
org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:140)
        at 
org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:120)
        at 
org.apache.ratis.InstallSnapshotFromLeaderTests.testMultiFileInstallSnapshot(InstallSnapshotFromLeaderTests.java:79)
{code}

[~szetszwo], [~William Song], do you know which commit from {{master}} would 
fix this test?

Branch with backports:
https://github.com/adoroszlai/incubator-ratis/commits/backports-before-2.5.0



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to