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

Extension update succeeds while it is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • trunk
    • trunk, 0.11
    • extensions
    • None

    Description

      pragya.mittal@falcon1001:~$ falcon extension -disable -extensionName extension-example
      Status of extension: extension-examplechanged to disabled state state.
      
      pragya.mittal@falcon1001:~$ fepdef sample3-ProcessRecipe-test
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <process name="sample3-ProcessRecipe-test" version="0" xmlns="uri:falcon:process:0.1">
          <tags>_falcon_extension_name=extension-example,_falcon_extension_job=sample3</tags>
          <pipelines>testSample1</pipelines>
          <clusters>
              <cluster name="local" version="0">
                  <validity start="2017-01-31T06:00Z" end="2017-01-31T12:00Z"/>
              </cluster>
          </clusters>
          <parallel>1</parallel>
          <order>FIFO</order>
          <frequency>minutes(3)</frequency>
          <timezone>UTC</timezone>
          <inputs>
              <input name="inputData" feed="sample3-input-feed" start="now(0,0)" end="now(0,0)"/>
          </inputs>
          <outputs>
              <output name="outputData" feed="sample3-output-feed" instance="now(0,5)"/>
          </outputs>
          <properties>
              <property name="queueName" value="default"/>
              <property name="fileTime" value="${formatTime(dateOffset(instanceTime(), 1, 'DAY'), 'yyyy-MMM-dd')}"/>
              <property name="user" value="${user()}"/>
          </properties>
          <workflow path="/tmp/falcon-regression/ExtensionTest/aggregator"/>
          <retry policy="periodic" delay="minutes(3)" attempts="3"/>
          <ACL owner="dataqa" group="dataqa" permission="*"/>
      </process>
      

      Updating the extension to change process frequency from minutes(3) to minutes(5) should fail as extension is disabled. But it succeeds.

      pragya.mittal@falcon1001:~$ falcon extension -update -extensionName extension-example -jobName sample3 -file abc
      Updated successfully
      

      New process definition is :

      pragya.mittal@falcon1001:~$ fepdef sample3-ProcessRecipe-test
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <process name="sample3-ProcessRecipe-test" version="0" xmlns="uri:falcon:process:0.1">
          <tags>_falcon_extension_name=extension-example,_falcon_extension_job=sample3</tags>
          <pipelines>testSample1</pipelines>
          <clusters>
              <cluster name="local" version="0">
                  <validity start="2017-01-31T06:00Z" end="2017-01-31T12:00Z"/>
              </cluster>
          </clusters>
          <parallel>1</parallel>
          <order>FIFO</order>
          <frequency>minutes(5)</frequency>
          <timezone>UTC</timezone>
          <inputs>
              <input name="inputData" feed="sample3-input-feed" start="now(0,0)" end="now(0,0)"/>
          </inputs>
          <outputs>
              <output name="outputData" feed="sample3-output-feed" instance="now(0,5)"/>
          </outputs>
          <properties>
              <property name="queueName" value="default"/>
              <property name="fileTime" value="${formatTime(dateOffset(instanceTime(), 1, 'DAY'), 'yyyy-MMM-dd')}"/>
              <property name="user" value="${user()}"/>
          </properties>
          <workflow path="/tmp/falcon-regression/ExtensionTest/aggregator"/>
          <retry policy="periodic" delay="minutes(3)" attempts="3"/>
          <ACL owner="dataqa" group="dataqa" permission="*"/>
      </process>
      

      Attachments

        Issue Links

          Activity

            People

              sandeep.samudrala sandeep samudrala
              pragya.mittal Pragya Mittal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: