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

Deploying a new version of an application fails when a schedule is deleted from the newer version

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0, 4.0.1
    • Fix Version/s: 4.2.0, 4.1.1
    • Component/s: App Fabric
    • Labels:
      None
    • Release Notes:
      Fixed an issue where redeployment of an application with a deleted schedule would fail.
    • Rank:
      1|hzzxd3:

      Description

      When we delete a schedule in an application and re-deploy the application, the re-deployment fails with the following stacktrace -

      2017-03-08 14:21:02,505 - ERROR [appfabric-executor-20:c.c.c.g.h.AppLifecycleHttpHandler$2@460] - Deploy failure
      java.util.concurrent.ExecutionException: co.cask.cdap.internal.app.runtime.schedule.ScheduleNotFoundException: 'schedule:default.PurchaseHistory.-SNAPSHOT.Dai
      lySchedule' was not found.
              at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:294) ~[com.google.guava.guava-13.0.1.jar:na]
              at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:281) ~[com.google.guava.guava-13.0.1.jar:na]
              at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) ~[com.google.guava.guava-13.0.1.jar:na]
              at co.cask.cdap.internal.app.services.ApplicationLifecycleService.deployApp(ApplicationLifecycleService.java:582) ~[na:na]
              at co.cask.cdap.internal.app.services.ApplicationLifecycleService.deployAppAndArtifact(ApplicationLifecycleService.java:364) ~[na:na]
              at co.cask.cdap.gateway.handlers.AppLifecycleHttpHandler$2.onFinish(AppLifecycleHttpHandler.java:442) ~[na:na]
              at co.cask.cdap.common.http.AbstractBodyConsumer.finished(AbstractBodyConsumer.java:65) [na:na]
              at co.cask.http.HttpMethodInfo.bodyConsumerFinish(HttpMethodInfo.java:149) [co.cask.http.netty-http-0.16.0.jar:na]
              at co.cask.http.HttpMethodInfo.chunk(HttpMethodInfo.java:108) [co.cask.http.netty-http-0.16.0.jar:na]
              at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:40) [co.cask.http.netty-http-0.16.0.jar:na]
              at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [io.netty.net
      ty-3.6.6.Final.jar:na]
              at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [io.netty.netty-3.6.6.Final.jar:na]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_80]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_80]
              at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]
      Caused by: co.cask.cdap.internal.app.runtime.schedule.ScheduleNotFoundException: 'schedule:default.PurchaseHistory.-SNAPSHOT.DailySchedule' was not found.
              at co.cask.cdap.internal.app.runtime.schedule.AbstractSchedulerService.getSchedulerForSchedule(AbstractSchedulerService.java:249) ~[na:na]
              at co.cask.cdap.internal.app.runtime.schedule.AbstractSchedulerService.deleteSchedule(AbstractSchedulerService.java:193) ~[na:na]
              at co.cask.cdap.internal.app.deploy.pipeline.CreateSchedulesStage.process(CreateSchedulesStage.java:63) ~[na:na]
              at co.cask.cdap.internal.app.deploy.pipeline.CreateSchedulesStage.process(CreateSchedulesStage.java:36) ~[na:na]
              at co.cask.cdap.pipeline.AbstractStage.process(AbstractStage.java:52) ~[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:130) ~[na:na]
              ... 16 common frames omitted
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rsinha Rohit Sinha
                Reporter:
                poorna Poorna Chandra
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: