Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-1727

Suspend fails with InvalidStateTransitionException if entity has 'KILLED' instances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.9
    • scheduler
    • None

    Description

      If entity has some instances which are in KILLED state then that entity cannot be suspended.

      dataqa@lda01:~$ fep -name ProcessWfTest-agregator-coord16-bcc5f5bd -suspend
      ERROR: Bad Request;ua1/org.apache.falcon.FalconWebException::org.apache.falcon.FalconException: Some instances failed to suspend : Instance suspend failed for : PROCESS/ProcessWfTest-agregator-coord16-bcc5f5bd/ProcessWfTest-corp-b3eeaf12/2016-01-05-14-00 due to Suspend failed for instance : PROCESS/ProcessWfTest-agregator-coord16-bcc5f5bd/ProcessWfTest-corp-b3eeaf12/2016-01-05-14-00
      
      

      Stack trace :

      2016-01-05 14:32:54,398 ERROR - [1053544342@qtp-1816147548-4 - 9441ce75-cca6-4962-9efe-f58e60b44c2e:dataqa:POST//entities/suspend/process/ProcessWfTest-agregator-coord16-bcc5f5bd] ~ Suspend failed for instance id : PROCESS/ProcessWfTest-agregator-coord16-bcc5f5bd/ProcessWfTest-corp-b3eeaf12/2016-01-05-14-00 (ProcessExecutor:248)
      org.apache.falcon.exception.InvalidStateTransitionException: Instance is in terminal state, KILLED. Cannot apply transitions.
      	at org.apache.falcon.state.InstanceState$STATE$6.nextTransition(InstanceState.java:137)
      	at org.apache.falcon.state.InstanceState$STATE$6.nextTransition(InstanceState.java:128)
      	at org.apache.falcon.state.InstanceState.nextTransition(InstanceState.java:236)
      	at org.apache.falcon.state.StateService.handleStateChange(StateService.java:141)
      	at org.apache.falcon.execution.ProcessExecutor.suspend(ProcessExecutor.java:246)
      	at org.apache.falcon.execution.ProcessExecutor.suspendAll(ProcessExecutor.java:153)
      	at org.apache.falcon.execution.FalconExecutionService.onSuspend(FalconExecutionService.java:170)
      	at org.apache.falcon.state.StateService.callbackHandler(StateService.java:105)
      	at org.apache.falcon.state.StateService.handleStateChange(StateService.java:83)
      	at org.apache.falcon.execution.FalconExecutionService.suspend(FalconExecutionService.java:203)
      	at org.apache.falcon.workflow.engine.FalconWorkflowEngine.suspend(FalconWorkflowEngine.java:118)
      	at org.apache.falcon.resource.AbstractSchedulableEntityManager.suspend(AbstractSchedulableEntityManager.java:223)
      	at org.apache.falcon.resource.SchedulableEntityManager.suspend(SchedulableEntityManager.java:167)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      
      

      Attachments

        1. FALCON-1727.patch
          6 kB
          Pallavi Rao

        Issue Links

          Activity

            People

              pallavi.rao Pallavi Rao
              pragya.mittal Pragya Mittal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: