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

Falcon process output events which is optional should have at least one event if defined

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.3
    • 0.5
    • client, process

    Description

      Currently, outputs in Falcon process is optional which is fine.

      <xs:element type="outputs" name="outputs" minOccurs="0">
      <xs:annotation>
      <xs:documentation>Defines outputs of the workflow
      </xs:documentation>
      </xs:annotation>
      </xs:element>

      but the contents of this should have atleast one event:
      <xs:complexType name="outputs">
      <xs:sequence>
      <xs:element type="output" name="input" maxOccurs="unbounded" minOccurs="0">
      </xs:element>
      </xs:sequence>
      </xs:complexType>

      Otherwise, oozie throws exception:

      2013-12-23 14:34:44,809 ERROR CoordSubmitXCommand:536 - USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0421329-131109200338010-oozie-oozi-B] ACTION[-] XException,
      org.apache.oozie.command.CommandException: E0701: XML schema error, cvc-complex-type.2.4.b: The content of element 'output-events' is not complete. One of '

      {"uri:oozie:coordinator:0.3":data-out}

      ' is expected.
      at org.apache.oozie.command.coord.CoordSubmitXCommand.submit(CoordSubmitXCommand.java:282)
      at org.apache.oozie.command.SubmitTransitionXCommand.execute(SubmitTransitionXCommand.java:81)
      at org.apache.oozie.command.SubmitTransitionXCommand.execute(SubmitTransitionXCommand.java:29)
      at org.apache.oozie.command.XCommand.call(XCommand.java:277)
      at org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:175)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      Attachments

        1. FALCON-236.patch
          1 kB
          Shaik Idris Ali

        Activity

          People

            shaik.idris Shaik Idris Ali
            shaik.idris Shaik Idris Ali
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: