Skip to content

Commit 01d950a

Browse files
author
Ritesh Garg
committed
Fixing issues related to sleep
1 parent 33823a1 commit 01d950a

File tree

1 file changed

+2
-2
lines changed
  • hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs

1 file changed

+2
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ private boolean processDatanodeError() throws IOException {
12421242
streamerClosed = true;
12431243
return false;
12441244
}
1245-
boolean doSleep = false;
1245+
12461246
setupPipelineForAppendOrRecovery();
12471247

12481248
if (!streamerClosed && dfsClient.clientRunning) {
@@ -1277,7 +1277,7 @@ private boolean processDatanodeError() throws IOException {
12771277
}
12781278
}
12791279

1280-
return doSleep;
1280+
return false;
12811281
}
12821282

12831283
void setHflush() {

0 commit comments

Comments
 (0)