hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vihang Karajgaonkar (Jira)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-24562) Deflake TestHivePrivilegeObjectOwnerNameAndType
Date Tue, 22 Dec 2020 20:25:00 GMT

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

Vihang Karajgaonkar commented on HIVE-24562:
--------------------------------------------

I believe we should run {{TestTxnDbUtil.prepDb(conf);}} in the test setup method since it
creates the transactional schema. I have seen this to be used in other tests like {{TestHiveAuthorizerCheckInvocation}}
as well.

> Deflake TestHivePrivilegeObjectOwnerNameAndType
> -----------------------------------------------
>
>                 Key: HIVE-24562
>                 URL: https://issues.apache.org/jira/browse/HIVE-24562
>             Project: Hive
>          Issue Type: Test
>            Reporter: Vihang Karajgaonkar
>            Assignee: Vihang Karajgaonkar
>            Priority: Minor
>
> One of my unrelated PRs fails this test {{TestHivePrivilegeObjectOwnerNameAndType}}.
The exception which I see in the logs is below:
> {noformat}
> Caused by: ERROR 42X05: Table/View 'TXN_LOCK_TBL' does not exist.
>         at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
>         at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
>         at org.apache.derby.impl.sql.compile.LockTableNode.bindStatement(Unknown Source)
>         at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
>         at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
>         at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
Source)
>         ... 73 more
> )
>         at org.apache.hadoop.hive.metastore.txn.TxnHandler.openTxns(TxnHandler.java:651)
>         at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.open_txns(HiveMetaStore.java:8301)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:147)
>         at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:108)
>         at com.sun.proxy.$Proxy46.open_txns(Unknown Source)
>         at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.openTxnsIntr(HiveMetaStoreClient.java:3634)
>         at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.openTxn(HiveMetaStoreClient.java:3595)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:218)
>         at com.sun.proxy.$Proxy47.openTxn(Unknown Source)
>         at org.apache.hadoop.hive.ql.lockmgr.DbTxnManager.openTxn(DbTxnManager.java:243)
>         at org.apache.hadoop.hive.ql.lockmgr.DbTxnManager.openTxn(DbTxnManager.java:227)
>         at org.apache.hadoop.hive.ql.Compiler.openTransaction(Compiler.java:268)
>         at org.apache.hadoop.hive.ql.Compiler.analyze(Compiler.java:215)
>         at org.apache.hadoop.hive.ql.Compiler.compile(Compiler.java:104)
>         at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:492)
>         at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:445)
>         at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:178)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:150)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:137)
>         at org.apache.hadoop.hive.ql.security.authorization.plugin.TestHivePrivilegeObjectOwnerNameAndType.runCmd(TestHivePrivilegeObjectOwnerNameAndType.java:86)
>         at org.apache.hadoop.hive.ql.security.authorization.plugin.TestHivePrivilegeObjectOwnerNameAndType.beforeTest(TestHivePrivilegeObjectOwnerNameAndType.java:82)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>         at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>         at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
>         at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
>         at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>         at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
>         at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>         at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>         at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:43)
>         at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
>         at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
>         at java.util.Iterator.forEachRemaining(Iterator.java:116)
>         at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
>         at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
>         at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
>         at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
>         at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
>         at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
>         at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485)
>         at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:82)
>         at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:73)
>         at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)
>         at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)
>         at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)
>         at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)
>         at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)
>         at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:188)
>         at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
>         at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:124)
>         at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
>         at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
>         at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
>         at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
> {noformat} 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message