Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-12401

File.MonitorFile not working correctly (due to eventName parameter clashing with reserved word)

    XMLWordPrintable

Details

    • Regression
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 5.0
    • 5.0.4
    • DFU Server

    Description

      This ECl code fragment:

      IMPORT * FROM Std;
      foundFileEventName := 'FoundAFile';
      File.MonitorFile   (
                        foundFileEventName,
                        'a_proper_ip_address',
                        '/var/lib/HPCCSystems/mydropzone/*'
                     );
      OUTPUT('Waiting for FileMonitor.');
      OUTPUT('File Found') : WHEN(EVENT(foundFileEventName,'*'),COUNT(1));
      
      

      creates a proper result:

      <Result>
      <Info><Source>fileservices</Source><Message>MonitorFile (192.168.1.50, &apos;/var/lib/HPCCSystems/mydropzone/*&apos;): &apos;D20141014-162053</Message></Info>
      <Dataset name='Result 1'>
       <Row><Result_1>Waiting for FileMonitor.</Result_1></Row>
      </Dataset>
      <Dataset name='Result 2'>
       <Row><Result_2>File Found</Result_2></Row>
      </Dataset>
      </Result>
      

      on 4.2.8-1, but it hangs on 5.0.x

      Attachments

        Activity

          People

            ghalliday Gavin Halliday
            attilavamos Attila Vamos
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: