Kaynağa Gözat

HDFS-11497. Ozone: Fix Container test regression. Contributed by Anu Engineer.

Anu Engineer 8 yıl önce
ebeveyn
işleme
5d0a206a63

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/container/common/impl/ContainerLocationManagerImpl.java

@@ -124,7 +124,7 @@ public class ContainerLocationManagerImpl implements ContainerLocationManager {
       StorageLocationReport r = new StorageLocationReport(
           loc.getStorageUuId(), false, loc.getCapacity(),
           scmUsed, remaining);
-      reports[idx++] = r;
+      reports[idx] = r;
     }
     return reports;
   }