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

FalconException shouldn't be caught in AbstractRerunHandler in case of obtaining Workflow engine from entity

    XMLWordPrintableJSON

Details

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

    Description

      WorkflowEngineFactory.getWorkflowEngine(Entity entity) throw FalconException in three cases
      1) When it didnt find org.apache.falcon.workflow.engine.FalconWorkflowEngine this class in class path
      2) When StateStore is not initialized
      3) FalconException will be thrown if entity is not present in configStore.

      I thought when org.apache.falcon.workflow.engine.FalconWorkflowEngine doesn't exists its better to return defaultworkflowengine but looks like it might not occur since FalconWorkflowEngine will be present always from now .
      Second case is not possible it won't throw FalconException it might throw other runtime exceptions
      Third case won't occur generally but still we shouldn't catch exception and return Default WorkflowEngine.

      Attachments

        1. FALCON-1735.patch
          1 kB
          pavan kumar kolamuri

        Activity

          People

            pavan kumar pavan kumar kolamuri
            pavan kumar pavan kumar kolamuri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: