[ https://issues.apache.org/jira/browse/HIVE-24244?focusedWorklogId=497768&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-497768 ]
ASF GitHub Bot logged work on HIVE-24244: ----------------------------------------- Author: ASF GitHub Bot Created on: 09/Oct/20 05:50 Start Date: 09/Oct/20 05:50 Worklog Time Spent: 10m Work Description: pkumarsinha commented on a change in pull request #1563: URL: https://github.com/apache/hive/pull/1563#discussion_r502202414 ########## File path: ql/src/test/org/apache/hadoop/hive/ql/exec/repl/TestAtlasDumpTask.java ########## @@ -96,4 +105,13 @@ public void testAtlasDumpMetrics() throws Exception { Assert.assertTrue(eventDetailsCaptor .getAllValues().get(1).toString().contains("{\"dbName\":\"srcDB\",\"dumpEndTime\"")); } + + @Test + public void testAtlasRestClientBuilder() throws SemanticException, IOException { + mockStatic(UserGroupInformation.class); + when(UserGroupInformation.getLoginUser()).thenReturn(mock(UserGroupInformation.class)); + AtlasRestClientBuilder atlasRestCleintBuilder = new AtlasRestClientBuilder("http://localhost:31000"); + AtlasRestClient atlasClient = atlasRestCleintBuilder.getClient(conf); + Assert.assertTrue(atlasClient != null); Review comment: HiveConf is mocked, so hive in test is not present(so false). ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 497768) Time Spent: 0.5h (was: 20m) > NPE during Atlas metadata replication > ------------------------------------- > > Key: HIVE-24244 > URL: https://issues.apache.org/jira/browse/HIVE-24244 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Reporter: Pravin Sinha > Assignee: Pravin Sinha > Priority: Major > Labels: pull-request-available > Attachments: HIVE-24244.01.patch > > Time Spent: 0.5h > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.3.4#803005)