[ 
https://issues.apache.org/jira/browse/HDDS-1766?focusedWorklogId=275777&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-275777
 ]

ASF GitHub Bot logged work on HDDS-1766:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Jul/19 10:26
            Start Date: 12/Jul/19 10:26
    Worklog Time Spent: 10m 
      Work Description: mukul1987 commented on pull request #1072: HDDS-1766. 
ContainerStateMachine is unable to increment lastAppliedTermIndex. Contributed 
by  Mukul Kumar Singh.
URL: https://github.com/apache/hadoop/pull/1072#discussion_r302923915
 
 

 ##########
 File path: 
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
 ##########
 @@ -554,12 +556,12 @@ private ByteString getCachedStateMachineData(Long 
logIndex, long term,
       }
     } catch (Exception e) {
       metrics.incNumReadStateMachineFails();
-      LOG.error("unable to read stateMachineData:" + e);
+      LOG.error("{} unable to read stateMachineData:", gid, e);
       return completeExceptionally(e);
     }
   }
 
-  private void updateLastApplied() {
+  private synchronized void updateLastApplied() {
 
 Review comment:
   HDDS-1792 will fix this by using ConcurrentHashSet.
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 275777)
    Time Spent: 40m  (was: 0.5h)

> ContainerStateMachine is unable to increment lastAppliedTermIndex
> -----------------------------------------------------------------
>
>                 Key: HDDS-1766
>                 URL: https://issues.apache.org/jira/browse/HDDS-1766
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Datanode
>            Reporter: Lokesh Jain
>            Assignee: Mukul Kumar Singh
>            Priority: Blocker
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> ContainerStateMachine#updateLastApplied currently updates the 
> lastAppliedTermIndex using applyTransactionCompletionMap. There are null 
> entries in the applyTransactionCompletionMap causing the lastAppliedIndex to 
> not be incremented.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to