[ 
https://issues.apache.org/jira/browse/IGNITE-15202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477757#comment-17477757
 ] 

Mirza Aliev edited comment on IGNITE-15202 at 1/18/22, 10:52 AM:
-----------------------------------------------------------------

Root cause of this problem is that there is a gap between user task is applied 
to FSM and {{FSMCallerImpl.lastAppliedIndex}} is updated, so we ran 
{{Node#readCommittedUserLog}} in test, but {{FSMCallerImpl.lastAppliedIndex}} 
had not been updated.

Note that waiting for the latch in {{ItNodeTest#sendTestTaskAndWait()}} when 
tasks are applying doesn't guarantee that {{FSMCallerImpl.lastAppliedIndex}} 
will be updated immediately.


was (Author: maliev):
Root cause of this problem is that there is a gap between user task is applied 
to FSM and {{FSMCallerImpl.lastAppliedIndex}} is updated, so we ran 
\{{Node#readCommittedUserLog}} in test, but {{FSMCallerImpl.lastAppliedIndex}} 
has not been updated.

Note that waiting for the latch in {{ItNodeTest#sendTestTaskAndWait()}} when 
tasks are applying doesn't guarantee that {{FSMCallerImpl.lastAppliedIndex}} 
will be updated immediately.

> ITNodeTest.readCommittedUserLog is flaky
> ----------------------------------------
>
>                 Key: IGNITE-15202
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15202
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Ivan Bessonov
>            Assignee: Mirza Aliev
>            Priority: Blocker
>              Labels: ignite-3
>         Attachments: ITNodeTest.readCommittedUserLog.log
>
>
> [https://ci.ignite.apache.org/buildConfiguration/ignite3_Test_IntegrationTests_IntegrationTests/6106062]
> {code:java}
> java.lang.IllegalStateException: No user log between index:1 and 
> last_applied_index:1
>   at 
> org.apache.ignite.raft.jraft.core.ITNodeTest.readCommittedUserLog(ITNodeTest.java:2728)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to