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

All ECL test code fails in Debug build.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • master
    • 8.8.0
    • Workunit
    • None

    Description

      The confusing error message is:

      +Exception(s):
      +2: 2022-04-05 17:31:09 GMT: Error - syntax error Expecting < [line 50, file offset 1936]
      +er_version value=8.7.0/>
      +</Archive>
      +M*ERROR*ismatched prefix ComplexHelperSize Size 

      A search with "ismatched prefix" pointed to the wuattr.cpp:173-180

      #ifdef _DEBUG
              const char * prefix = queryMeasurePrefix(info.measure);
              if (info.name && prefix && *prefix)
              {
                  if (!startsWith(info.name, prefix))
                      printf("Mismatched prefix %s %s\n", info.name, prefix);
              }
      #endif
      

      The problem is the name of a recently introduced attribute (HPCC-27453): 

      CHILD(ComplexHelperSize, SMeasureSize, "complexHelperSize"), 

      is not follow the expected naming.

      The "ComplexHelperSize" is "SMeasureSize" kind of attribute but it doesn't start with "Size" (as all previously defined "SizeClassApprox" or "SizePreload" attributes do). This expected "Size" prefix defined in queryMeasurePrefix() in jstats.cpp:635.

      It seems the debug information only a message about unconformity, but later it is handled as an exception and prevents workunit creation. Unfortunately, I can't find any further information in the platform log. files.

      I changed the name of this attribute to "SizeComplexHelper" and all places where it is defined and used and the problem disappeared.

      Attachments

        Activity

          People

            attilavamos Attila Vamos
            attilavamos Attila Vamos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: