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:
parent
1f6f4a2457
commit
36c1caced5
|
@ -23,7 +23,7 @@ import java.lang.reflect.Modifier;
|
||||||
import java.util.concurrent.BlockingQueue;
|
import java.util.concurrent.BlockingQueue;
|
||||||
import java.util.concurrent.LinkedBlockingQueue;
|
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.conf.Configuration;
|
||||||
import org.apache.hadoop.yarn.conf.YarnConfiguration;
|
import org.apache.hadoop.yarn.conf.YarnConfiguration;
|
||||||
import org.apache.hadoop.yarn.exceptions.YarnRuntimeException;
|
import org.apache.hadoop.yarn.exceptions.YarnRuntimeException;
|
||||||
|
@ -143,7 +143,7 @@ public class TestAsyncDispatcher {
|
||||||
YarnConfiguration conf = new YarnConfiguration();
|
YarnConfiguration conf = new YarnConfiguration();
|
||||||
conf.setInt(YarnConfiguration.
|
conf.setInt(YarnConfiguration.
|
||||||
YARN_DISPATCHER_PRINT_EVENTS_INFO_THRESHOLD, 5000);
|
YARN_DISPATCHER_PRINT_EVENTS_INFO_THRESHOLD, 5000);
|
||||||
Logger log = mock(Logger.class);
|
Log log = mock(Log.class);
|
||||||
AsyncDispatcher dispatcher = new AsyncDispatcher();
|
AsyncDispatcher dispatcher = new AsyncDispatcher();
|
||||||
dispatcher.init(conf);
|
dispatcher.init(conf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue