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:
parent
124313d215
commit
9acf462d26
|
@ -45,7 +45,7 @@ public class TestDFSStripedOutputStreamUpdatePipeline {
|
||||||
Path filePath = new Path("/test/file");
|
Path filePath = new Path("/test/file");
|
||||||
FSDataOutputStream out = dfs.create(filePath);
|
FSDataOutputStream out = dfs.create(filePath);
|
||||||
try {
|
try {
|
||||||
for (int i = 0; i < Long.MAX_VALUE; i++) {
|
for (int i = 0; i < Integer.MAX_VALUE; i++) {
|
||||||
out.write(i);
|
out.write(i);
|
||||||
if (i == 1024 * 1024 * 5) {
|
if (i == 1024 * 1024 * 5) {
|
||||||
cluster.stopDataNode(0);
|
cluster.stopDataNode(0);
|
||||||
|
|
Loading…
Reference in New Issue