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

Read Past End of Stream

    XMLWordPrintable

    Details

    • Type: Regression
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.0.2
    • Fix Version/s: 6.0.2
    • Component/s: Thor
    • Labels:
      None

      Description

      The following code gets an error about reading past end of stream (W20160630-151852 on Boca Dataland : 6.0.2-rc2). It seems to be caused by an empty dataset going into the left side of a join. This code runs without issue on the prod system running 5.6.4-1.

      the_base:=record
        unsigned6 proxid;
      	unsigned6 seleid;
      	unsigned6 parent_proxid;
      	unsigned6 ultimate_proxid;
      	unsigned2 levels_from_top;
       end;
      
      start_ds := nofold(dataset([
          {2620068, 2620068, 0, 2620068, 0}, 
          {44564670568, 44564670568, 8783183, 2620068, 2}
      ], the_base));
      
      J0:=start_ds(seleid=2620068);
      	
      K:=join(start_ds, choosen(J0, 1),
              left.ultimate_proxid = right.ultimate_proxid,
              transform(left)); //Get the whole tree
      output(K, named('the_whole_tree'));
      
      J1:=join(K, J0,
               left.ultimate_proxid = right.ultimate_proxid and
                 left.proxid = right.parent_proxid,
               transform(left));
      output(J1, named('Level_1'));
      
      J2:=join(J1, K,
               left.ultimate_proxid = right.ultimate_proxid and
                 left.proxid = right.parent_proxid,
               transform(right));
      output(J2, named('Level_2'));
      

      If the input to J2 is switched so that K is left and J1 if right and the transform is transform(left), it doesn't error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jakesmith Jake Smith
                Reporter:
                dustinskaggs Dustin Skaggs
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: