[ https://issues.apache.org/jira/browse/HIVE-24244?focusedWorklogId=498364&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-498364 ]
ASF GitHub Bot logged work on HIVE-24244: ----------------------------------------- Author: ASF GitHub Bot Created on: 09/Oct/20 14:01 Start Date: 09/Oct/20 14:01 Worklog Time Spent: 10m Work Description: aasha commented on a change in pull request #1563: URL: https://github.com/apache/hive/pull/1563#discussion_r502163365 ########## 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: hive in test repl is set to true. It will return a No Op Client which will never be null. ---------------------------------------------------------------- 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: 498364) Time Spent: 50m (was: 40m) > 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: 50m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.3.4#803005)