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

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
Marcono1234 2023-05-31 12:40:07 +02:00 committed by GitHub
parent 124313d215
commit 9acf462d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ public void testDFSStripedOutputStreamUpdatePipeline() throws Exception {
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);