HADOOP-16266. Add more fine-grained processing time metrics to the RPC layer -follow-on patch.
This follow-on patch to HADOOP-16266 fixes up the problem where logs were being full of stack traces because the timeout passed down to select was in nanos, whereas the API expected millis. Contributed by Erik Krogen. Change-Id: I5c6e9ddf68127b1d7e0ca0e179d036eb9941e445
This commit is contained in:
parent
50909a7aa0
commit
827a84778a
@ -1482,7 +1482,8 @@ private void doRunLoop() {
|
||||
while (running) {
|
||||
try {
|
||||
waitPending(); // If a channel is being registered, wait.
|
||||
writeSelector.select(PURGE_INTERVAL_NANOS);
|
||||
writeSelector.select(
|
||||
TimeUnit.NANOSECONDS.toMillis(PURGE_INTERVAL_NANOS));
|
||||
Iterator<SelectionKey> iter = writeSelector.selectedKeys().iterator();
|
||||
while (iter.hasNext()) {
|
||||
SelectionKey key = iter.next();
|
||||
|
Loading…
Reference in New Issue
Block a user