Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-3015

Fix flaky org.apache.flume.channel.jdbc.TestJdbcChannelProviderNoFK.testEventWithSimulatedSourceAndSinks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.0
    • None
    • Test
    • None

    Description

      testEventWithSimulatedSourceAndSinks(org.apache.flume.channel.jdbc.TestJdbcChannelProviderNoFK): org.apache.flume.channel.jdbc.JdbcChannelException: Failed to persist event

       testEventWithSimulatedSourceAndSinks(org.apache.flume.channel.jdbc.TestJdbcChannelProviderNoFK)  Time elapsed: 310978 sec  <<< ERROR!
       java.util.concurrent.ExecutionException: org.apache.flume.channel.jdbc.JdbcChannelException: Failed to persist event
       	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
       	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
       	at org.apache.flume.channel.jdbc.BaseJdbcChannelProviderTest.testEventWithSimulatedSourceAndSinks(BaseJdbcChannelProviderTest.java:202)
       	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       	at java.lang.reflect.Method.invoke(Method.java:606)
       	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
       	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
       	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
       	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
       	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
       	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
       	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
       	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
       	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
       	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
       	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
       	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
       	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
       	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
       	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
       	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
       	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
       	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
       	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       	at java.lang.reflect.Method.invoke(Method.java:606)
       	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
       	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
       	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
       	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
       	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
       Caused by: org.apache.flume.channel.jdbc.JdbcChannelException: Failed to persist event
       	at org.apache.flume.channel.jdbc.impl.JdbcChannelProviderImpl.persistEvent(JdbcChannelProviderImpl.java:312)
       	at org.apache.flume.channel.jdbc.BaseJdbcChannelProviderTest$MockSource.call(BaseJdbcChannelProviderTest.java:368)
       	at org.apache.flume.channel.jdbc.BaseJdbcChannelProviderTest$MockSource.call(BaseJdbcChannelProviderTest.java:345)
       	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
       	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:745)
       Caused by: org.apache.flume.channel.jdbc.JdbcChannelException: Unable to persist event: org.apache.flume.channel.jdbc.impl.PersistableEvent@4fbafc05
       	at org.apache.flume.channel.jdbc.impl.DerbySchemaHandler.storeEvent(DerbySchemaHandler.java:733)
       	at org.apache.flume.channel.jdbc.impl.JdbcChannelProviderImpl.persistEvent(JdbcChannelProviderImpl.java:305)
       	... 6 more
       Caused by: java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested
       	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
       	at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
       	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
       	at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
       	at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
       	at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
       	at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
       	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
       	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeLargeUpdate(Unknown Source)
       	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
       	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
       	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
       	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
       	at org.apache.flume.channel.jdbc.impl.DerbySchemaHandler.storeEvent(DerbySchemaHandler.java:646)
       	... 7 more
       Caused by: ERROR 40XL1: A lock could not be obtained within the time requested
       	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.catalog.SequenceUpdater.tooMuchContentionException(Unknown Source)
       	at org.apache.derby.impl.sql.catalog.SequenceUpdater.getCurrentValueAndAdvance(Unknown Source)
       	at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getCurrentValueAndAdvance(Unknown Source)
       	at org.apache.derby.impl.sql.execute.BaseActivation.getCurrentValueAndAdvance(Unknown Source)
       	at org.apache.derby.impl.sql.execute.InsertResultSet.getSetAutoincrementValue(Unknown Source)
       	at org.apache.derby.impl.sql.execute.BaseActivation.getSetAutoincrementValue(Unknown Source)
       	at org.apache.derby.exe.acc8680cc0x0157x8b61x3d90x00000c2070f01.e0(Unknown Source)
       	at org.apache.derby.impl.services.reflect.DirectCall.invoke(Unknown Source)
       	at org.apache.derby.impl.sql.execute.RowResultSet.getNextRowCore(Unknown Source)
       	at org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(Unknown Source)
       	at org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(Unknown Source)
       	at org.apache.derby.impl.sql.execute.InsertResultSet.getNextRowCore(Unknown Source)
       	at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
       	at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
       	at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
       	... 15 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sati Attila Simon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: