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

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

                Author: ASF GitHub Bot
            Created on: 12/Sep/19 23:06
            Start Date: 12/Sep/19 23:06
    Worklog Time Spent: 10m 
      Work Description: xiaoyuyao commented on pull request #1430: HDDS-2117. 
ContainerStateMachine#writeStateMachineData times out.
URL: https://github.com/apache/hadoop/pull/1430#discussion_r323984092
 
 

 ##########
 File path: 
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
 ##########
 @@ -706,9 +711,15 @@ public void notifyIndexUpdate(long term, long index) {
       // Ensure the command gets executed in a separate thread than
       // stateMachineUpdater thread which is calling applyTransaction here.
       CompletableFuture<ContainerCommandResponseProto> future =
-          CompletableFuture.supplyAsync(
-              () -> runCommand(requestProto, builder.build()),
-              getCommandExecutor(requestProto));
+          CompletableFuture.supplyAsync(() -> {
+            try {
+              return runCommand(requestProto, builder.build());
+            } catch (Exception e) {
+              e.printStackTrace();
 
 Review comment:
   same as above. 
 
----------------------------------------------------------------
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: 311807)
    Time Spent: 40m  (was: 0.5h)

> ContainerStateMachine#writeStateMachineData times out
> -----------------------------------------------------
>
>                 Key: HDDS-2117
>                 URL: https://issues.apache.org/jira/browse/HDDS-2117
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Datanode
>    Affects Versions: 0.5.0
>            Reporter: Shashikant Banerjee
>            Assignee: Shashikant Banerjee
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.5.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> The issue seems to be happening because the below precondition check fails in 
> case two writeChunk gets executed in parallel and the runtime exception 
> thrown is handled correctly in ContainerStateMachine.
>  
> HddsDispatcher.java:239
> {code:java}
> Preconditions
>     .checkArgument(!container2BCSIDMap.containsKey(containerID));
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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

Reply via email to