Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-14081

UsageHandler.testServiceUsage fails because of the transaction timeout.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.1.0
    • Component/s: CDAP
    • Labels:
      None
    • Rank:
      1|i00gcn:

      Description

      UsageHandler.testServiceUsage fails because of the transaction timeout error. Test tries to deploy app which takes more than 30 seconds causing the failure of the test case.

      The exception in the log is

      2018-08-10 15:44:00,399 - ERROR [appfabric-executor-8:c.c.c.g.h.AppLifecycleHttpHandler$2@503] - Deploy failure
      java.lang.RuntimeException: org.apache.tephra.TransactionNotInProgressException: canCommit() is called for transaction 1533915780326000000 that is not in progress (it is known to be invalid)
      	at co.cask.cdap.api.Transactionals.propagate(Transactionals.java:195) ~[na:na]
      	at co.cask.cdap.api.Transactionals.execute(Transactionals.java:108) ~[na:na]
      	at co.cask.cdap.internal.app.store.DefaultStore.getApplication(DefaultStore.java:607) ~[na:na]
      	at co.cask.cdap.internal.app.deploy.pipeline.LocalArtifactLoaderStage.process(LocalArtifactLoaderStage.java:124) ~[na:na]
      	at co.cask.cdap.internal.app.deploy.pipeline.LocalArtifactLoaderStage.process(LocalArtifactLoaderStage.java:56) ~[na:na]
      	at co.cask.cdap.pipeline.AbstractStage.process(AbstractStage.java:53) ~[na:na]
      	at co.cask.cdap.internal.pipeline.SynchronousPipeline.execute(SynchronousPipeline.java:55) ~[na:na]
      	at co.cask.cdap.internal.app.deploy.LocalApplicationManager.deploy(LocalApplicationManager.java:138) ~[na:na]
      	at co.cask.cdap.internal.app.services.ApplicationLifecycleService.deployApp(ApplicationLifecycleService.java:685) ~[na:na]
      	at co.cask.cdap.internal.app.services.ApplicationLifecycleService.deployAppAndArtifact(ApplicationLifecycleService.java:375) ~[na:na]
      	at co.cask.cdap.gateway.handlers.AppLifecycleHttpHandler$2.onFinish(AppLifecycleHttpHandler.java:478) ~[na:na]
      	at co.cask.cdap.common.http.AbstractBodyConsumer.finished(AbstractBodyConsumer.java:65) [na:na]
      	at co.cask.http.internal.HttpMethodInfo.bodyConsumerFinish(HttpMethodInfo.java:151) [netty-http-1.0.0.jar:na]
      	at co.cask.http.internal.HttpMethodInfo.chunk(HttpMethodInfo.java:112) [netty-http-1.0.0.jar:na]
      	at co.cask.http.internal.HttpDispatcher.channelRead(HttpDispatcher.java:47) [netty-http-1.0.0.jar:na]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:38) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:353) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.util.concurrent.NonStickyEventExecutorGroup$NonStickyOrderedEventExecutor.run(NonStickyEventExecutorGroup.java:245) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.util.concurrent.UnorderedThreadPoolEventExecutor$NonNotifyRunnable.run(UnorderedThreadPoolEventExecutor.java:277) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_101]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_101]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_101]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_101]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]
      	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
      

        Attachments

          Activity

            People

            • Assignee:
              sagar Sagar Kapare
              Reporter:
              sagar Sagar Kapare
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: