Browse Source

HPCC-26124 The external.ecl and externalplane.ecl uses same file names and may clashes in parallel query mode.

Add WUID to filenames in external.ecl and externalplane.ecl

Tested localy in paralle query mode.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>
Attila Vamos 4 years ago
parent
commit
ede4987210
2 changed files with 2 additions and 2 deletions
  1. 1 1
      testing/regress/ecl/external.ecl
  2. 1 1
      testing/regress/ecl/externalplane.ecl

+ 1 - 1
testing/regress/ecl/external.ecl

@@ -9,7 +9,7 @@ ds := DATASET([{'a'}], rec);
 dropzonePath := File.GetDefaultDropZone() +'/' : STORED('dropzonePath');
 
 string getFName(string ext) := FUNCTION
- RETURN File.ExternalLogicalFileName('localhost', dropzonePath) + 'external' + ext;
+ RETURN File.ExternalLogicalFileName('localhost', dropzonePath)  + WORKUNIT + 'external' + ext;
 END;
 
 external1 := getFName('1');

+ 1 - 1
testing/regress/ecl/externalplane.ecl

@@ -27,7 +27,7 @@ ds := DATASET([{'a'}], rec);
 dropzone := 'mydropzone' : STORED('dropzone');
 
 string getFName(string ext) := FUNCTION
- RETURN '~PLANE::' + dropzone + '::' + 'external' + ext;
+ RETURN '~PLANE::' + dropzone + '::'  + WORKUNIT + 'external' + ext;
 END;
 
 external1 := getFName('1');