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

DEDUP...KEEP(n),RIGHT crashes WU where n > 1

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Not specified
    • Resolution: Duplicate
    • 6.2.20
    • None
    • Code Generator
    • None
    • UK_DEV_THOR

    Description

      Use Code:

      #workunit('name','HPCC issue with DEDUP');
      LayoutEnquiryDriveFile := RECORD
         STRING9 SourceId; // Key
         STRING20 AccountNumber;
         STRING1 NCDBasic; // Y/N
         STRING1 NCDInsight; // Y/N
         STRING1 CsvOutput; // Y/N
         STRING4 TargetEnquiry; 
         STRING20 TargetDirectory; 
      END;
      
      d := DATASET([{'LN0000001','100000' ,'Y','Y','N','DEV','reports'}, 
                     {'LN0000002','114' ,'Y','N','N','DEV','reports'} 
                   ],LayoutEnquiryDriveFile);
      
      d2 := DISTRIBUTE(d,HASH32(SourceID));
      s := SORT(d2,SourceID,LOCAL);
      s2 := DEDUP(s,SourceID,KEEP(2),RIGHT,LOCAL);
      s2;
      

      Crashed with error:

      Error:    System error: 3000: Graph graph1[1], workunitwrite[6]: SLAVE #6 [10.193.65.6:8700]: assert(keepLeft || numToKeep == 1) failed - file: /var/lib/jenkins/workspace/LN-Candidate-6.2.20-1/LN/centos-6.0-x86_64/HPCC-Platform/thorlcr/activities/rollup/throllupslave.cpp, line 304,  - caused by (3000, assert(keepLeft || numToKeep == 1) failed - file: /var/lib/jenkins/workspace/LN-Candidate-6.2.20-1/LN/centos-6.0-x86_64/HPCC-Platform/thorlcr/activities/rollup/throllupslave.cpp, line 304) (0, 0), 3000, 
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              allan Allan Francis Wrobel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: