[ 
https://issues.apache.org/jira/browse/HIVE-4883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13712764#comment-13712764
 ] 

Thejas M Nair commented on HIVE-4883:
-------------------------------------


The stack trace for the both the tests that error our is like this -
{code}
<testcase classname="org.apache.hadoop.hive.thrift.TestHadoop20SAuthBridge" 
name="testSaslWithHiveMetaStore" time="0.908">
    <error type="java.lang.NullPointerException">java.lang.NullPointerException
        at 
org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server$1.run(HadoopThriftAuthBridge20S.java:382)
        at 
org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server$1.run(HadoopThriftAuthBridge20S.java:380)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:396)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1135)
        at 
org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server.getDelegationToken(HadoopThriftAuthBridge20S.java:380)
        at 
org.apache.hadoop.hive.metastore.HiveMetaStore.getDelegationToken(HiveMetaStore.java:4137)
        at 
org.apache.hadoop.hive.thrift.TestHadoop20SAuthBridge.getDelegationTokenStr(TestHadoop20SAuthBridge.java:298)
        at 
org.apache.hadoop.hive.thrift.TestHadoop20SAuthBridge.obtainTokenAndAddIntoUGI(TestHadoop20SAuthBridge.java:305)
        at 
org.apache.hadoop.hive.thrift.TestHadoop20SAuthBridge.testSaslWithHiveMetaStore(TestHadoop20SAuthBridge.java:214)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:154)
{code}
                
> TestHadoop20SAuthBridge tests fail sometimes because of race condition
> ----------------------------------------------------------------------
>
>                 Key: HIVE-4883
>                 URL: https://issues.apache.org/jira/browse/HIVE-4883
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore, Tests
>    Affects Versions: 0.11.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>
> TestHadoop20SAuthBridge tests testSaslWithHiveMetaStore and 
> testMetastoreProxyUser sometimes fail. I have seen this more often on mac and 
> windows, but this can happen on linux as well.
> The problem is that metastore is started in a different thread and these unit 
> tests actually rely on the metastore having initialized 
> DelegationTokenSecretManager in HadoopThriftAuthBridge20S as part of the 
> metastore startup (HiveMetaStore.startMetaStore )

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to