[
https://issues.apache.org/jira/browse/SENTRY-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718128#comment-14718128
]
Colin Ma commented on SENTRY-860:
---------------------------------
hi, [~anneyu], I have 2 comments:
1. for the code: LOGGER.info(res.getString(1)); is it just for debug?
otherwise, it maybe not necessary for the testcase.
2. for fail("fail to test temp func printf_test"); this will never be called,
and if called, this will cause the test failed because no exception will be
thrown at that point.
> Fix intermittent test failure for
> TestPrivilegesAtFunctionScope.testFuncPrivileges1
> -----------------------------------------------------------------------------------
>
> Key: SENTRY-860
> URL: https://issues.apache.org/jira/browse/SENTRY-860
> Project: Sentry
> Issue Type: Bug
> Reporter: Anne Yu
> Assignee: Anne Yu
> Attachments: SENTRY-860-0.patch
>
>
> Failed
> {code}
> org.apache.sentry.tests.e2e.hive.TestPrivilegesAtFunctionScope.testFuncPrivileges1
> Failing for the past 1 build (Since Unstable#42 )
> Took 7.6 sec.
> add description
> Error Message
> org.apache.thrift.transport.TTransportException
> Stacktrace
> java.sql.SQLException: org.apache.thrift.transport.TTransportException
> at
> org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
> at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
> at
> org.apache.thrift.transport.TSaslTransport.readLength(TSaslTransport.java:376)
> at
> org.apache.thrift.transport.TSaslTransport.readFrame(TSaslTransport.java:453)
> at
> org.apache.thrift.transport.TSaslTransport.read(TSaslTransport.java:435)
> at
> org.apache.thrift.transport.TSaslClientTransport.read(TSaslClientTransport.java:37)
> at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
> at
> org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:429)
> at
> org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:318)
> at
> org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:219)
> at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)
> at
> org.apache.hive.service.cli.thrift.TCLIService$Client.recv_ExecuteStatement(TCLIService.java:225)
> at
> org.apache.hive.service.cli.thrift.TCLIService$Client.ExecuteStatement(TCLIService.java:212)
> 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:483)
> at
> org.apache.hive.jdbc.HiveConnection$SynchronizedHandler.invoke(HiveConnection.java:1263)
> at com.sun.proxy.$Proxy33.ExecuteStatement(Unknown Source)
> at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:243)
> at
> org.apache.sentry.tests.e2e.hive.TestPrivilegesAtFunctionScope.testFuncPrivileges1(TestPrivilegesAtFunctionScope.java:97)
> Standard Output
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)