[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-27 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Attachment: (was: RATIS-883.001.patch)

> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Sub-task
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.
> The stack of follower update commitInfoCache is: 
> RaftServerImpl::appendEntriesAsync
> -> state.updateStateMachine 
> -> StateMachineUpdater::applyLog 
> -> RaftServerImpl::applyLogToStateMachine
> -> RaftServerImpl::replyPendingRequest 
> -> RaftServerImpl::getCommitInfos 
> -> infos.add(commitInfoCache.update(getPeer(), 
> state.getLog().getLastCommittedIndex())) 
> -> CommitInfoCache::update.
> The stack of leader update commitInfoCache is: 
> follower finish RaftServerImpl::appendEntriesAsync and return reply
> -> GrpcLogAppender::runAppenderImpl 
> -> GrpcLogAppender::appendLog 
> ->LogAppender::createRequest 
> ->LeaderState::newAppendEntriesRequestProto 
> ->RaftServerImpl::getCommitInfos 
> ->LeaderState::updateFollowerCommitInfos
> ->CommitInfoCache::update.
> Because follower need to notify thread StateMachineUpdater to update 
> CommitInfoCache, we can not ensure follower update CommitInfoCache before 
> leader.
> *How to fix ?*
> Follower update CommitInfoCache before return reply to leader.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-27 Thread Shashikant Banerjee (Jira)


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

Shashikant Banerjee updated RATIS-883:
--
Parent: RATIS-863
Issue Type: Sub-task  (was: Bug)

> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Sub-task
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: RATIS-883.001.patch, screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.
> The stack of follower update commitInfoCache is: 
> RaftServerImpl::appendEntriesAsync
> -> state.updateStateMachine 
> -> StateMachineUpdater::applyLog 
> -> RaftServerImpl::applyLogToStateMachine
> -> RaftServerImpl::replyPendingRequest 
> -> RaftServerImpl::getCommitInfos 
> -> infos.add(commitInfoCache.update(getPeer(), 
> state.getLog().getLastCommittedIndex())) 
> -> CommitInfoCache::update.
> The stack of leader update commitInfoCache is: 
> follower finish RaftServerImpl::appendEntriesAsync and return reply
> -> GrpcLogAppender::runAppenderImpl 
> -> GrpcLogAppender::appendLog 
> ->LogAppender::createRequest 
> ->LeaderState::newAppendEntriesRequestProto 
> ->RaftServerImpl::getCommitInfos 
> ->LeaderState::updateFollowerCommitInfos
> ->CommitInfoCache::update.
> Because follower need to notify thread StateMachineUpdater to update 
> CommitInfoCache, we can not ensure follower update CommitInfoCache before 
> leader.
> *How to fix ?*
> Follower update CommitInfoCache before return reply to leader.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Attachment: RATIS-883.001.patch

> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: RATIS-883.001.patch, screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.
> The stack of follower update commitInfoCache is: 
> RaftServerImpl::appendEntriesAsync
> -> state.updateStateMachine 
> -> StateMachineUpdater::applyLog 
> -> RaftServerImpl::applyLogToStateMachine
> -> RaftServerImpl::replyPendingRequest 
> -> RaftServerImpl::getCommitInfos 
> -> infos.add(commitInfoCache.update(getPeer(), 
> state.getLog().getLastCommittedIndex())) 
> -> CommitInfoCache::update.
> The stack of leader update commitInfoCache is: 
> follower finish RaftServerImpl::appendEntriesAsync and return reply
> -> GrpcLogAppender::runAppenderImpl 
> -> GrpcLogAppender::appendLog 
> ->LogAppender::createRequest 
> ->LeaderState::newAppendEntriesRequestProto 
> ->RaftServerImpl::getCommitInfos 
> ->LeaderState::updateFollowerCommitInfos
> ->CommitInfoCache::update.
> Because follower need to notify thread StateMachineUpdater to update 
> CommitInfoCache, we can not ensure follower update CommitInfoCache before 
> leader.
> *How to fix ?*
> Follower update CommitInfoCache before return reply to leader.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Description: 
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync
-> state.updateStateMachine 
-> StateMachineUpdater::applyLog 
-> RaftServerImpl::applyLogToStateMachine
-> RaftServerImpl::replyPendingRequest 
-> RaftServerImpl::getCommitInfos 
-> infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) 
-> CommitInfoCache::update.

The stack of leader update commitInfoCache is: 
follower finish RaftServerImpl::appendEntriesAsync and return reply
-> GrpcLogAppender::runAppenderImpl 
-> GrpcLogAppender::appendLog 
->LogAppender::createRequest 
->LeaderState::newAppendEntriesRequestProto 
->RaftServerImpl::getCommitInfos 
->LeaderState::updateFollowerCommitInfos
->CommitInfoCache::update.


Because follower need to notify thread StateMachineUpdater to update 
CommitInfoCache, we can not ensure follower update CommitInfoCache before 
leader.

*How to fix ?*
Follower update CommitInfoCache before return reply to leader.

  was:
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync
-> state.updateStateMachine 
-> StateMachineUpdater::applyLog 
-> RaftServerImpl::applyLogToStateMachine
-> RaftServerImpl::replyPendingRequest 
-> RaftServerImpl::getCommitInfos 
-> infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) 
-> CommitInfoCache::update.

The stack of leader update commitInfoCache is: 
follower finish RaftServerImpl::appendEntriesAsync and return reply
-> GrpcLogAppender::runAppenderImpl 
-> GrpcLogAppender::appendLog 
->LogAppender::createRequest 
->LeaderState::newAppendEntriesRequestProto 
->RaftServerImpl::getCommitInfos 
->LeaderState::updateFollowerCommitInfos
->CommitInfoCache::update.


Because follower need to notify thread StateMachineUpdater to update 
CommitInfoCache, we can not ensure follower update CommitInfoCache before 
leader.


> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.
> The stack of follower update commitInfoCache is: 
> RaftServerImpl::appendEntriesAsync
> -> state.updateStateMachine 
> -> StateMachineUpdater::applyLog 
> -> RaftServerImpl::applyLogToStateMachine
> -> RaftServerImpl::replyPendingRequest 
> -> RaftServerImpl::getCommitInfos 
> -> infos.add(commitInfoCache.update(getPeer(), 
> state.getLog().getLastCommittedIndex())) 
> -> CommitInfoCache::update.
> The stack of leader update commitInfoCache is: 
> follower finish RaftServerImpl::appendEntriesAsync and return reply
> -> GrpcLogAppender::runAppenderImpl 
> -> GrpcLogAppender::appendLog 
> ->LogAppender::createRequest 
> ->LeaderState::newAppendEntriesRequestProto 
> ->RaftServerImpl::getCommitInfos 
> ->LeaderState::updateFollowerCommitInfos
> ->CommitInfoCache::update.
> Because follower need to notify thread StateMachineUpdater to update 
> CommitInfoCache, we can not ensure follower update CommitInfoCache before 
> leader.
> *How to fix ?*
> Follower update CommitInfoCache before return reply to leader.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Description: 
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync
-> state.updateStateMachine 
-> StateMachineUpdater::applyLog 
-> RaftServerImpl::applyLogToStateMachine
-> RaftServerImpl::replyPendingRequest 
-> RaftServerImpl::getCommitInfos 
-> infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) 
-> CommitInfoCache::update.

The stack of leader update commitInfoCache is: 
follower finish RaftServerImpl::appendEntriesAsync and return reply
-> GrpcLogAppender::runAppenderImpl 
-> GrpcLogAppender::appendLog 
->LogAppender::createRequest 
->LeaderState::newAppendEntriesRequestProto 
->RaftServerImpl::getCommitInfos 
->LeaderState::updateFollowerCommitInfos
->CommitInfoCache::update.


Because follower need to notify thread StateMachineUpdater to update 
CommitInfoCache, we can not ensure follower update CommitInfoCache before 
leader.

  was:
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync
-> state.updateStateMachine 
-> StateMachineUpdater::applyLog
-> RaftServerImpl::applyLogToStateMachine
-> RaftServerImpl::replyPendingRequest 
-> RaftServerImpl::getCommitInfos 
-> infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) 
-> CommitInfoCache::update.

The stack of leader update commitInfoCache is: 
follower finish RaftServerImpl::appendEntriesAsync and return reply
-> GrpcLogAppender::runAppenderImpl 
-> GrpcLogAppender::appendLog 
->LogAppender::createRequest 
->LeaderState::newAppendEntriesRequestProto 
->RaftServerImpl::getCommitInfos 
->LeaderState::updateFollowerCommitInfos
->CommitInfoCache::update.


> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.
> The stack of follower update commitInfoCache is: 
> RaftServerImpl::appendEntriesAsync
> -> state.updateStateMachine 
> -> StateMachineUpdater::applyLog 
> -> RaftServerImpl::applyLogToStateMachine
> -> RaftServerImpl::replyPendingRequest 
> -> RaftServerImpl::getCommitInfos 
> -> infos.add(commitInfoCache.update(getPeer(), 
> state.getLog().getLastCommittedIndex())) 
> -> CommitInfoCache::update.
> The stack of leader update commitInfoCache is: 
> follower finish RaftServerImpl::appendEntriesAsync and return reply
> -> GrpcLogAppender::runAppenderImpl 
> -> GrpcLogAppender::appendLog 
> ->LogAppender::createRequest 
> ->LeaderState::newAppendEntriesRequestProto 
> ->RaftServerImpl::getCommitInfos 
> ->LeaderState::updateFollowerCommitInfos
> ->CommitInfoCache::update.
> Because follower need to notify thread StateMachineUpdater to update 
> CommitInfoCache, we can not ensure follower update CommitInfoCache before 
> leader.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Description: 
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync
-> state.updateStateMachine 
-> StateMachineUpdater::applyLog
-> RaftServerImpl::applyLogToStateMachine
-> RaftServerImpl::replyPendingRequest 
-> RaftServerImpl::getCommitInfos 
-> infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) 
-> CommitInfoCache::update.

The stack of leader update commitInfoCache is: 
follower finish RaftServerImpl::appendEntriesAsync and return reply
-> GrpcLogAppender::runAppenderImpl 
-> GrpcLogAppender::appendLog 
->LogAppender::createRequest 
->LeaderState::newAppendEntriesRequestProto 
->RaftServerImpl::getCommitInfos 
->LeaderState::updateFollowerCommitInfos
->CommitInfoCache::update.

  was:
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync
-> state.updateStateMachine 
-> StateMachineUpdater::applyLog
-> RaftServerImpl::applyLogToStateMachine
-> RaftServerImpl::replyPendingRequest 
-> RaftServerImpl::getCommitInfos 
-> infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) 
-> CommitInfoCache::update.

The stack of leader update commitInfoCache is: 
follower finish RaftServerImpl::appendEntriesAsync and return reply
-> GrpcLogAppender::runAppenderImpl 
-> GrpcLogAppender::appendLog 
->LogAppender::createRequest 
->LeaderState::newAppendEntriesRequestProto 
->RaftServerImpl::getCommitInfos 
->LeaderState::updateFollowerCommitInfos-
>CommitInfoCache::update.


> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.
> The stack of follower update commitInfoCache is: 
> RaftServerImpl::appendEntriesAsync
> -> state.updateStateMachine 
> -> StateMachineUpdater::applyLog
> -> RaftServerImpl::applyLogToStateMachine
> -> RaftServerImpl::replyPendingRequest 
> -> RaftServerImpl::getCommitInfos 
> -> infos.add(commitInfoCache.update(getPeer(), 
> state.getLog().getLastCommittedIndex())) 
> -> CommitInfoCache::update.
> The stack of leader update commitInfoCache is: 
> follower finish RaftServerImpl::appendEntriesAsync and return reply
> -> GrpcLogAppender::runAppenderImpl 
> -> GrpcLogAppender::appendLog 
> ->LogAppender::createRequest 
> ->LeaderState::newAppendEntriesRequestProto 
> ->RaftServerImpl::getCommitInfos 
> ->LeaderState::updateFollowerCommitInfos
> ->CommitInfoCache::update.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Description: 
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync
-> state.updateStateMachine 
-> StateMachineUpdater::applyLog
-> RaftServerImpl::applyLogToStateMachine
-> RaftServerImpl::replyPendingRequest 
-> RaftServerImpl::getCommitInfos 
-> infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) 
-> CommitInfoCache::update.

The stack of leader update commitInfoCache is: 
follower finish RaftServerImpl::appendEntriesAsync and return reply
-> GrpcLogAppender::runAppenderImpl 
-> GrpcLogAppender::appendLog 
->LogAppender::createRequest 
->LeaderState::newAppendEntriesRequestProto 
->RaftServerImpl::getCommitInfos 
->LeaderState::updateFollowerCommitInfos-
>CommitInfoCache::update.

  was:
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync-> state.updateStateMachine -> 
StateMachineUpdater::applyLog -> RaftServerImpl::applyLogToStateMachine -> 
RaftServerImpl::replyPendingRequest -> RaftServerImpl::getCommitInfos -> 
infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) -> CommitInfoCache::update.

The stack of leader update commitInfoCache is: follower finish 
RaftServerImpl::appendEntriesAsync and return reply-> 
GrpcLogAppender::runAppenderImpl 
-> GrpcLogAppender::appendLog ->LogAppender::createRequest 
->LeaderState::newAppendEntriesRequestProto ->RaftServerImpl::getCommitInfos 
->LeaderState::updateFollowerCommitInfos->CommitInfoCache::update.


> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.
> The stack of follower update commitInfoCache is: 
> RaftServerImpl::appendEntriesAsync
> -> state.updateStateMachine 
> -> StateMachineUpdater::applyLog
> -> RaftServerImpl::applyLogToStateMachine
> -> RaftServerImpl::replyPendingRequest 
> -> RaftServerImpl::getCommitInfos 
> -> infos.add(commitInfoCache.update(getPeer(), 
> state.getLog().getLastCommittedIndex())) 
> -> CommitInfoCache::update.
> The stack of leader update commitInfoCache is: 
> follower finish RaftServerImpl::appendEntriesAsync and return reply
> -> GrpcLogAppender::runAppenderImpl 
> -> GrpcLogAppender::appendLog 
> ->LogAppender::createRequest 
> ->LeaderState::newAppendEntriesRequestProto 
> ->RaftServerImpl::getCommitInfos 
> ->LeaderState::updateFollowerCommitInfos-
> >CommitInfoCache::update.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Description: 
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync-> state.updateStateMachine -> 
StateMachineUpdater::applyLog -> RaftServerImpl::applyLogToStateMachine -> 
RaftServerImpl::replyPendingRequest -> RaftServerImpl::getCommitInfos -> 
infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) -> CommitInfoCache::update.

The stack of leader update commitInfoCache is: follower finish 
RaftServerImpl::appendEntriesAsync and return reply-> 
GrpcLogAppender::runAppenderImpl 
-> GrpcLogAppender::appendLog ->LogAppender::createRequest 
->LeaderState::newAppendEntriesRequestProto ->RaftServerImpl::getCommitInfos 
->LeaderState::updateFollowerCommitInfos->CommitInfoCache::update.

  was:
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync-> state.updateStateMachine -> 
StateMachineUpdater::applyLog -> RaftServerImpl::applyLogToStateMachine -> 
RaftServerImpl::replyPendingRequest -> RaftServerImpl::getCommitInfos -> 
infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) -> CommitInfoCache::update.

The stack of leader update commitInfoCache is: follower finish 
RaftServerImpl::appendEntriesAsync and return reply-> 
GrpcLogAppender::runAppenderImpl -> GrpcLogAppender::appendLog 
->LogAppender::createRequest ->LeaderState::newAppendEntriesRequestProto 
->RaftServerImpl::getCommitInfos 
->LeaderState::updateFollowerCommitInfos->CommitInfoCache::update.


> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.
> The stack of follower update commitInfoCache is: 
> RaftServerImpl::appendEntriesAsync-> state.updateStateMachine -> 
> StateMachineUpdater::applyLog -> RaftServerImpl::applyLogToStateMachine -> 
> RaftServerImpl::replyPendingRequest -> RaftServerImpl::getCommitInfos -> 
> infos.add(commitInfoCache.update(getPeer(), 
> state.getLog().getLastCommittedIndex())) -> CommitInfoCache::update.
> The stack of leader update commitInfoCache is: follower finish 
> RaftServerImpl::appendEntriesAsync and return reply-> 
> GrpcLogAppender::runAppenderImpl 
> -> GrpcLogAppender::appendLog ->LogAppender::createRequest 
> ->LeaderState::newAppendEntriesRequestProto ->RaftServerImpl::getCommitInfos 
> ->LeaderState::updateFollowerCommitInfos->CommitInfoCache::update.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Description: 
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync-> state.updateStateMachine -> 
StateMachineUpdater::applyLog -> RaftServerImpl::applyLogToStateMachine -> 
RaftServerImpl::replyPendingRequest -> RaftServerImpl::getCommitInfos -> 
infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) -> CommitInfoCache::update.

The stack of leader update commitInfoCache is: follower finish 
RaftServerImpl::appendEntriesAsync and return reply-> 
GrpcLogAppender::runAppenderImpl -> GrpcLogAppender::appendLog 
->LogAppender::createRequest ->LeaderState::newAppendEntriesRequestProto 
->RaftServerImpl::getCommitInfos 
->LeaderState::updateFollowerCommitInfos->CommitInfoCache::update.

  was:
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync-> state.updateStateMachine -> 
StateMachineUpdater::applyLog -> RaftServerImpl::applyLogToStateMachine -> 
RaftServerImpl::replyPendingRequest -> RaftServerImpl::getCommitInfos -> 
infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) -> CommitInfoProto::update.

Leader update 


> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.
> The stack of follower update commitInfoCache is: 
> RaftServerImpl::appendEntriesAsync-> state.updateStateMachine -> 
> StateMachineUpdater::applyLog -> RaftServerImpl::applyLogToStateMachine -> 
> RaftServerImpl::replyPendingRequest -> RaftServerImpl::getCommitInfos -> 
> infos.add(commitInfoCache.update(getPeer(), 
> state.getLog().getLastCommittedIndex())) -> CommitInfoCache::update.
> The stack of leader update commitInfoCache is: follower finish 
> RaftServerImpl::appendEntriesAsync and return reply-> 
> GrpcLogAppender::runAppenderImpl -> GrpcLogAppender::appendLog 
> ->LogAppender::createRequest ->LeaderState::newAppendEntriesRequestProto 
> ->RaftServerImpl::getCommitInfos 
> ->LeaderState::updateFollowerCommitInfos->CommitInfoCache::update.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Description: 
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

The stack of follower update commitInfoCache is: 
RaftServerImpl::appendEntriesAsync-> state.updateStateMachine -> 
StateMachineUpdater::applyLog -> RaftServerImpl::applyLogToStateMachine -> 
RaftServerImpl::replyPendingRequest -> RaftServerImpl::getCommitInfos -> 
infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) -> CommitInfoProto::update.

Leader update 

  was:
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

Follower update commitInfoCache when finish appendEntry and then 
state.updateStateMachine -> StateMachineUpdater::applyLog -> 
RaftServerImpl::applyLogToStateMachine -> RaftServerImpl::replyPendingRequest 
-> RaftServerImpl::getCommitInfos -> 
infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) -> CommitInfoProto::update.


> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.
> The stack of follower update commitInfoCache is: 
> RaftServerImpl::appendEntriesAsync-> state.updateStateMachine -> 
> StateMachineUpdater::applyLog -> RaftServerImpl::applyLogToStateMachine -> 
> RaftServerImpl::replyPendingRequest -> RaftServerImpl::getCommitInfos -> 
> infos.add(commitInfoCache.update(getPeer(), 
> state.getLog().getLastCommittedIndex())) -> CommitInfoProto::update.
> Leader update 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Description: 
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

Follower update commitInfoCache when finish appendEntry and then 
state.updateStateMachine -> StateMachineUpdater::applyLog -> 
RaftServerImpl::applyLogToStateMachine -> RaftServerImpl::replyPendingRequest 
-> RaftServerImpl::getCommitInfos -> 
infos.add(commitInfoCache.update(getPeer(), 
state.getLog().getLastCommittedIndex())) -> CommitInfoProto::update.

  was:
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.


> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.
> Follower update commitInfoCache when finish appendEntry and then 
> state.updateStateMachine -> StateMachineUpdater::applyLog -> 
> RaftServerImpl::applyLogToStateMachine -> RaftServerImpl::replyPendingRequest 
> -> RaftServerImpl::getCommitInfos -> 
> infos.add(commitInfoCache.update(getPeer(), 
> state.getLog().getLastCommittedIndex())) -> CommitInfoProto::update.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Description: 
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*
The reason is follower update commitInfoCache after leader.

  was:
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*


> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*
> The reason is follower update commitInfoCache after leader.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Attachment: screenshot-1.png

> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (RATIS-883) Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader

2020-04-25 Thread runzhiwang (Jira)


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

runzhiwang updated RATIS-883:
-
Description: 
*What's the problem ?*
 !screenshot-1.png! 

*What's the reason ?*

> Failed UT: testStateMachineMetrics.checkFollowerCommitLagsLeader
> 
>
> Key: RATIS-883
> URL: https://issues.apache.org/jira/browse/RATIS-883
> Project: Ratis
>  Issue Type: Bug
>Reporter: runzhiwang
>Assignee: runzhiwang
>Priority: Major
> Attachments: screenshot-1.png
>
>
> *What's the problem ?*
>  !screenshot-1.png! 
> *What's the reason ?*



--
This message was sent by Atlassian Jira
(v8.3.4#803005)