sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sravya Tirukkovalur (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SENTRY-208) Tests in TestSentryServiceIntegration are flaky
Date Fri, 16 May 2014 18:11:14 GMT
Sravya Tirukkovalur created SENTRY-208:
------------------------------------------

             Summary: Tests in TestSentryServiceIntegration are flaky
                 Key: SENTRY-208
                 URL: https://issues.apache.org/jira/browse/SENTRY-208
             Project: Sentry
          Issue Type: Bug
    Affects Versions: 1.4.0
            Reporter: Sravya Tirukkovalur
             Fix For: 1.4.0


mvn test -f sentry-provider/sentry-provider-db/pom.xml -Dtest=TestSentryServiceIntegration

Running org.apache.sentry.provider.db.service.thrift.TestSentryServiceIntegration
2014-05-16 11:03:21.514 java[34106:1703] Unable to load realm info from SCDynamicStore
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 18.666 sec <<< FAILURE!
- in org.apache.sentry.provider.db.service.thrift.TestSentryServiceIntegration
testShowRoleGrant(org.apache.sentry.provider.db.service.thrift.TestSentryServiceIntegration)
 Time elapsed: 4.453 sec  <<< ERROR!
java.lang.RuntimeException: Unknown error for request: TCreateSentryRoleRequest(protocol_version:1,
requestorUserName:admin_user, requestorGroupNames:[admin_group], roleName:admin_testdb), message:
No current connection.. Server Stacktrace: javax.jdo.JDODataStoreException: No current connection.
	at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:451)
	at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:732)
	at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:752)
	at org.apache.sentry.provider.db.service.persistent.SentryStore.createSentryRole(SentryStore.java:243)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.create_sentry_role(SentryPolicyStoreProcessor.java:134)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$create_sentry_role.getResult(SentryPolicyService.java:653)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$create_sentry_role.getResult(SentryPolicyService.java:638)
	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
	at org.apache.thrift.TMultiplexedProcessor.process(TMultiplexedProcessor.java:123)
	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:244)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)
NestedThrowablesStackTrace:
java.sql.SQLNonTransientConnectionException: No current connection.
	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedConnection.checkIfClosed(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedConnection.getAutoCommit(Unknown Source)
	at com.jolbox.bonecp.ConnectionHandle.getAutoCommit(ConnectionHandle.java:587)
	at org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.release(ConnectionFactoryImpl.java:329)
	at org.datanucleus.store.rdbms.AbstractSchemaTransaction.execute(AbstractSchemaTransaction.java:165)
	at org.datanucleus.store.rdbms.RDBMSStoreManager.addClasses(RDBMSStoreManager.java:1624)
	at org.datanucleus.store.AbstractStoreManager.addClass(AbstractStoreManager.java:953)
	at org.datanucleus.store.rdbms.RDBMSStoreManager.getDatastoreClass(RDBMSStoreManager.java:687)
	at org.datanucleus.store.rdbms.RDBMSStoreManager.getPropertiesForGenerator(RDBMSStoreManager.java:2059)
	at org.datanucleus.store.AbstractStoreManager.getStrategyValue(AbstractStoreManager.java:1364)
	at org.datanucleus.ExecutionContextImpl.newObjectId(ExecutionContextImpl.java:3727)
	at org.datanucleus.state.JDOStateManager.setIdentity(JDOStateManager.java:2574)
	at org.datanucleus.state.JDOStateManager.initialiseForPersistentNew(JDOStateManager.java:526)
	at org.datanucleus.state.ObjectProviderFactoryImpl.newForPersistentNew(ObjectProviderFactoryImpl.java:202)
	at org.datanucleus.ExecutionContextImpl.newObjectProviderForPersistentNew(ExecutionContextImpl.java:1326)
	at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2123)
	at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1972)
	at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1820)
	at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
	at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:727)
	at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:752)
	at org.apache.sentry.provider.db.service.persistent.SentryStore.createSentryRole(SentryStore.java:243)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.create_sentry_role(SentryPolicyStoreProcessor.java:134)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$create_sentry_role.getResult(SentryPolicyService.java:653)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$create_sentry_role.getResult(SentryPolicyService.java:638)
	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
	at org.apache.thrift.TMultiplexedProcessor.process(TMultiplexedProcessor.java:123)
	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:244)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)
Caused by: java.sql.SQLException: No current connection.
	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
Source)
	... 36 more

	at org.apache.sentry.service.thrift.Status.throwIfNotOk(Status.java:104)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyServiceClient.createRole(SentryPolicyServiceClient.java:111)
	at org.apache.sentry.provider.db.service.thrift.TestSentryServiceIntegration.testShowRoleGrant(TestSentryServiceIntegration.java:61)


Results :

Tests in error: 
  TestSentryServiceIntegration.testShowRoleGrant:61 ยป Runtime Unknown error for ...

Tests run: 3, Failures: 0, Errors: 1, Skipped: 0




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message