Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3111 [Umbrella] Fix flaky tests in Oozie
  3. OOZIE-3288

Flaky test TestCoordActionInputCheckXCommand#testActionInputCheckLatestActionCreationTimeWithPushDependency

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core, tests
    • None

    Description

      The test case TestCoordActionInputCheckXCommand#TestCoordActionInputCheckXCommand#testActionInputCheckLatestActionCreationTimeWithPushDependency is not stable.

      Tests run: 19, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 48.296 s <<< FAILURE! - in org.apache.oozie.command.coord.TestCoordActionInputCheckXCommandNonUTC
      testActionInputCheckLatestActionCreationTimeWithPushDependency(org.apache.oozie.command.coord.TestCoordActionInputCheckXCommandNonUTC)  Time elapsed: 1.231 s  <<< FAILURE!
      junit.framework.ComparisonFailure: expected:<[!!${coord:latestRange(-3,0)}]> but was:<[]>
              at junit.framework.Assert.assertEquals(Assert.java:100)
              at junit.framework.Assert.assertEquals(Assert.java:107)
              at junit.framework.TestCase.assertEquals(TestCase.java:269)
              at org.apache.oozie.command.coord.TestCoordActionInputCheckXCommand.checkCoordAction(TestCoordActionInputCheckXCommand.java:1066)
              at org.apache.oozie.command.coord.TestCoordActionInputCheckXCommand.testActionInputCheckLatestActionCreationTimeWithPushDependency(TestCoordActionInputCheckXCommand.java:333)
      

      There can be updates which are coming from queued commands that modify the state of a coordinator action.

      Name:, Connection:39, Time:0, Success:True, Type:Prepared, Batch:False, QuerySize:1, BatchSize:0, Query:["UPDATE COORD_ACTIONS t0 SET t0.status = ?, t0.last_modified_time = ?, t0.action_xml = ?, t0.missing_dependencies = ? WHERE (t0.id = ?)"], Params:[(READY,2018-06-07 19:01:14.267,java.io.ByteArrayInputStream@7c27c3ab,java.io.ByteArrayInputStream@6b07573c,0000000-1528423274144-TestCoordActionInputCheckXCommand-C@1)]
      java.lang.Exception: trace
              at org.apache.oozie.util.db.DBProxyLogger.writeLog(DBProxyLogger.java:35)
              at org.apache.oozie.util.db.DBProxyLogger.afterQuery(DBProxyLogger.java:27)
              at net.ttddyy.dsproxy.listener.ChainListener.afterQuery(ChainListener.java:27)
              at net.ttddyy.dsproxy.proxy.StatementProxyLogic.performQueryExecutionListener(StatementProxyLogic.java:387)
              at net.ttddyy.dsproxy.proxy.StatementProxyLogic.access$700(StatementProxyLogic.java:36)
              at net.ttddyy.dsproxy.proxy.StatementProxyLogic$1.execute(StatementProxyLogic.java:122)
              at net.ttddyy.dsproxy.listener.MethodExecutionListenerUtils.invoke(MethodExecutionListenerUtils.java:41)
              at net.ttddyy.dsproxy.proxy.StatementProxyLogic.invoke(StatementProxyLogic.java:119)
              at net.ttddyy.dsproxy.proxy.jdk.PreparedStatementInvocationHandler.invoke(PreparedStatementInvocationHandler.java:37)
              at com.sun.proxy.$Proxy118.executeUpdate(Unknown Source)
              at org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:275)
              at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.executeUpdate(LoggingConnectionDecorator.java:1131)
              at org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:275)
              at org.apache.openjpa.jdbc.kernel.JDBCStoreManager$CancelPreparedStatement.executeUpdate(JDBCStoreManager.java:1791)
              at org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.executeUpdate(JDBCStoreQuery.java:750)
              at org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.executeBulkOperation(JDBCStoreQuery.java:576)
              at org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.executeUpdate(JDBCStoreQuery.java:497)
              at org.apache.openjpa.kernel.ExpressionStoreQuery$DataStoreExecutor.executeUpdate(ExpressionStoreQuery.java:806)
              at org.apache.openjpa.kernel.QueryImpl.update(QueryImpl.java:1062)
              at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:873)
              at org.apache.openjpa.kernel.QueryImpl.updateAll(QueryImpl.java:910)
              at org.apache.openjpa.kernel.DelegatingQuery.updateAll(DelegatingQuery.java:597)
              at org.apache.openjpa.persistence.QueryImpl.executeUpdate(QueryImpl.java:370)
              at org.apache.oozie.service.JPAService$5.call(JPAService.java:414)
              at org.apache.oozie.service.JPAService$5.call(JPAService.java:408)
              at org.apache.oozie.util.db.OperationRetryHandler.executeWithRetry(OperationRetryHandler.java:86)
              at org.apache.oozie.service.JPAService.executeUpdate(JPAService.java:408)
              at org.apache.oozie.executor.jpa.CoordActionQueryExecutor.executeUpdate(CoordActionQueryExecutor.java:230)
              at org.apache.oozie.executor.jpa.CoordActionQueryExecutor.executeUpdate(CoordActionQueryExecutor.java:40)
              at org.apache.oozie.command.coord.CoordActionInputCheckXCommand.updateCoordAction(CoordActionInputCheckXCommand.java:275)
              at org.apache.oozie.command.coord.CoordActionInputCheckXCommand.moveCoordActionToReady(CoordActionInputCheckXCommand.java:450)
              at org.apache.oozie.command.coord.CoordActionInputCheckXCommand.execute(CoordActionInputCheckXCommand.java:185)
              at org.apache.oozie.command.coord.CoordActionInputCheckXCommand.execute(CoordActionInputCheckXCommand.java:64)
              at org.apache.oozie.command.XCommand.call(XCommand.java:290)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:182)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            pbacsko Peter Bacsko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: