Skip to content

Commit

Permalink
HADOOP-16266. Add more fine-grained processing time metrics to the RP…
Browse files Browse the repository at this point in the history
…C 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
  • Loading branch information
steveloughran committed Jun 4, 2019
1 parent 50909a7 commit 827a847
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 827a847

Please sign in to comment.