YARN-8995. Log events info in AsyncDispatcher when event queue size cumulatively reaches a certain number every time(addendum). Contributed by Jonathan Hung.

This commit is contained in:
Tao Yang 2019-09-07 08:19:02 +08:00
parent 1f6f4a2457
commit 36c1caced5
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import java.lang.reflect.Modifier;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import org.slf4j.Logger;
import org.apache.commons.logging.Log;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.yarn.conf.YarnConfiguration;
import org.apache.hadoop.yarn.exceptions.YarnRuntimeException;
@ -143,7 +143,7 @@ public class TestAsyncDispatcher {
YarnConfiguration conf = new YarnConfiguration();
conf.setInt(YarnConfiguration.
YARN_DISPATCHER_PRINT_EVENTS_INFO_THRESHOLD, 5000);
Logger log = mock(Logger.class);
Log log = mock(Log.class);
AsyncDispatcher dispatcher = new AsyncDispatcher();
dispatcher.init(conf);