Просмотр исходного кода

HDFS-12793. Ozone : TestSCMCli is failing consistently. Contributed by Chen Liang.

Yiqun Lin 7 лет назад
Родитель
Сommit
f3f663cc1d

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/scm/container/ContainerMapping.java

@@ -311,7 +311,7 @@ public class ContainerMapping implements Mapping {
       ContainerInfo updatedContainer = containerStateManager
           .updateContainerState(containerInfo, event);
       containerStore.put(dbKey, updatedContainer.getProtobuf().toByteArray());
-      return containerInfo.getState();
+      return updatedContainer.getState();
     } catch (LeaseException e) {
       throw new IOException("Lease Exception.", e);
     } finally {