InvisibleProgrammer commented on code in PR #4707: URL: https://github.com/apache/hive/pull/4707#discussion_r1344272609
########## ql/src/test/org/apache/hadoop/hive/ql/exec/repl/TestAtlasLoadTask.java: ########## @@ -55,28 +56,24 @@ public void testAtlasLoadMetrics() throws Exception { atlasLoadTask = new AtlasLoadTask(conf, work); AtlasLoadTask atlasLoadTaskSpy = Mockito.spy(atlasLoadTask); Mockito.when(conf.getBoolVar(HiveConf.ConfVars.HIVE_IN_TEST_REPL)).thenReturn(true); - Logger logger = Mockito.mock(Logger.class); - Whitebox.setInternalState(ReplState.class, logger); + Logger logger = LoggerFactory.getLogger("ReplState"); + StringAppender appender = StringAppender.createStringAppender(null); + appender.addToLogger(logger.getName(), Level.INFO); + appender.start(); AtlasReplInfo atlasReplInfo = new AtlasReplInfo("http://localhost:21000/atlas", "srcDB", - "tgtDB", "srcCluster", "tgtCluster", new Path("hdfs://tmp"), null, conf); + "tgtDB", "srcCluster", "tgtCluster", new Path("hdfs://tmp"), null, conf); Review Comment: Reverted. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org