HDFS-14415. Backport HDFS-13799 to branch-2. Contributed by Chao Sun.
This commit is contained in:
parent
2abc7927d1
commit
dce76e0355
|
@ -202,7 +202,6 @@ public class EditLogTailer {
|
|||
}
|
||||
|
||||
public void stop() throws IOException {
|
||||
rollEditsRpcExecutor.shutdown();
|
||||
tailerThread.setShouldRun(false);
|
||||
tailerThread.interrupt();
|
||||
try {
|
||||
|
@ -210,6 +209,8 @@ public class EditLogTailer {
|
|||
} catch (InterruptedException e) {
|
||||
LOG.warn("Edit log tailer thread exited with an exception");
|
||||
throw new IOException(e);
|
||||
} finally {
|
||||
rollEditsRpcExecutor.shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue