HDFS-14415. Backport HDFS-13799 to branch-2. Contributed by Chao Sun.

This commit is contained in:
Chen Liang 2019-04-05 11:27:37 -07:00
parent 2abc7927d1
commit dce76e0355
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}
}