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

DeleteLogicalFiles in APPLY errors out 5.0.2

    Details

      Description

      In testing code for a forum post (http://hpccsystems.com/bb/viewtopic.php?f=8&t=1497&sid=f751651f6513be45e86f3256d20adb09) I confirmed in 5.0.2 that STD.File.DeleteLogicalFile gets a runtime error (eclagent 0: System error: 0: Graph[1], SLAVE 10.0.1.1:20100: Graph[1], apply[3]: Could not delete file RTTEST::OUT::TestApplyDelete1,),

      I generated files this way:

      SomeFile := DISTRIBUTE(DATASET([

      {'A'}

      ,

      {'B'}

      ,

      {'C'}

      ,

      {'D'}

      ,

      {'E'}

      ,

      {'F'}

      ,

      {'G'}

      ,

      {'H'}

      ,

      {'I'}

      ,

      {'J'}

      ,

      {'K'}

      ,

      {'L'}

      ,

      {'M'}

      ,

      {'N'}

      ,

      {'O'}

      ,

      {'P'}

      ,

      {'Q'}

      ,

      {'R'}

      ,

      {'S'}

      ,

      {'T'}

      ,

      {'U'}

      ,

      {'V'}

      ,

      {'W'}

      ,

      {'X'}

      ,

      {'Y'}

      ,

      {'Z'}

      ],

      {STRING1 Letter}

      ));

      Set1 := SAMPLE(SomeFile,5,1);
      Set2 := SAMPLE(SomeFile,5,2);
      Set3 := SAMPLE(SomeFile,5,3);
      Set4 := SAMPLE(SomeFile,5,4);
      Set5 := SAMPLE(SomeFile,5,5);

      Filename := '~RTTEST::OUT::TestApplyDelete';

      OUTPUT(Set1,,Filename +'1');
      OUTPUT(Set2,,Filename +'2');
      OUTPUT(Set3,,Filename +'3');
      OUTPUT(Set4,,Filename +'4');
      OUTPUT(Set5,,Filename +'5');

      Then ran this code to generate the error:

      IMPORT STD;
      sampR := RECORD
      STRING name;
      END;

      ddd := DATASET([

      {'~RTTEST::OUT::TestApplyDelete1'}

      ,

      {'~RTTEST::OUT::TestApplyDelete2'}

      ],sampR);

      APPLY(ddd,STD.File.DeleteLogicalFile(ddd.name)); //this does not work
      // STD.File.DeleteLogicalFile(ddd[1].name); //but this does

        Attachments

          Activity

            People

            • Assignee:
              attilavamos Attila Vamos
              Reporter:
              richardtaylorhpcc Richard Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: