Browse Source

HDFS-17000. Fix faulty loop condition in TestDFSStripedOutputStreamUpdatePipeline (#5699). Contributed by Marcono1234.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
Marcono1234 2 years ago
parent
commit
9acf462d26

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSStripedOutputStreamUpdatePipeline.java

@@ -45,7 +45,7 @@ public class TestDFSStripedOutputStreamUpdatePipeline {
       Path filePath = new Path("/test/file");
       FSDataOutputStream out = dfs.create(filePath);
       try {
-        for (int i = 0; i < Long.MAX_VALUE; i++) {
+        for (int i = 0; i < Integer.MAX_VALUE; i++) {
           out.write(i);
           if (i == 1024 * 1024 * 5) {
             cluster.stopDataNode(0);