[ 
https://issues.apache.org/jira/browse/IGNITE-27185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Filipp Shergalis updated IGNITE-27185:
--------------------------------------
    Description: 
// Assert that new node got all log entries from old one.
await().until(oldNodeMetastorage::appliedRevision, 
is(newNodeMetastorage.appliedRevision()));
 
is incorrect, as it gets revision from the old node only once, replacing with 
await().until(() -> oldNodeMetastorage.appliedRevision() == 
newNodeMetastorage.appliedRevision());

  was:
Streaming snapshot without any commands applied to log after it seems to be 
broken in RAFT, so we try to send it repeatedly, getting "
Register DownloadingSnapshot failed: snapshot is not newer"
 
Not relevant to CMG tests, looks like CMG group applies some commands after 
snapshot is taken and before shutting down the cluster, so the problem is not 
reproduced 
 
Updating TruncateRaftLogCommand to make 1 snapshot and just using this job 
twice to cause log truncation seems to fix the issue with the test (not sure 
why)


> ItMetastorageRaftSnapshotCompatibilityTest is broken
> ----------------------------------------------------
>
>                 Key: IGNITE-27185
>                 URL: https://issues.apache.org/jira/browse/IGNITE-27185
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Roman Puchkovskiy
>            Assignee: Filipp Shergalis
>            Priority: Major
>              Labels: MakeTeamcityGreenAgain, ignite-3
>             Fix For: 3.2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> // Assert that new node got all log entries from old one.
> await().until(oldNodeMetastorage::appliedRevision, 
> is(newNodeMetastorage.appliedRevision()));
>  
> is incorrect, as it gets revision from the old node only once, replacing with 
> await().until(() -> oldNodeMetastorage.appliedRevision() == 
> newNodeMetastorage.appliedRevision());



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

Reply via email to