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

ASSERT not failing under Thor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.2.8
    • Fix Version/s: 6.2.12
    • Component/s: None
    • Labels:
      None

      Description

      DataRec := {STRING s};
      
      ds := GLOBAL(DATASET(['abcd', 'acd', 'bad', 'dbc'], DataRec));
      
      t1 := ds(REGEXFIND('b', s));
      OUTPUT(t1, NAMED('t1'));
      
      TestModule := MODULE
      
          EXPORT allTests :=
              [
                  ASSERT(COUNT(t1) = 2),  // should be 3
                  ASSERT(t1[2].s = 'foo') // should be 'bad'
              ];
      
      END;
      
      EVALUATE(TestModule);
      

      The above code works under hThor and Roxie without any problem. When executed on Thor, no ASSERTs are triggered. If a FAIL flag is added to one of the known-bad ASSERTs then the following error is reported at runtime:

      Error:    System error: -1: Graph graph1[14], simpleaction[15]: Abort execution, Master exception - caused by (-1, Abort execution) (0, 0), -1, 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jakesmith Jake Smith
                Reporter:
                dcamper Dan S. Camper
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: