Github user kevinxu021 commented on a diff in the pull request:
https://github.com/apache/trafodion/pull/1427#discussion_r172736451
--- Diff:
dcs/src/main/java/org/trafodion/dcs/master/listener/ListenerService.java ---
@@ -263,14 +264,20 @@ else if ((key.interestOps() & SelectionKey.OP_WRITE)
== SelectionKey.OP_WRITE) {
}
}
}
+ if (this.isInterrupted()) {
+ throw new InterruptedException();
+ }
//gc();
}
+ } catch (InterruptedException e) {
} catch (IOException e) {
LOG.error(e);
--- End diff --
it's better to use 2 parameters API for LOG.error
---