Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-9.4.x'
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Halliday <[email protected]>

# Conflicts:
#	commons-hpcc/pom.xml
#	dfsclient/pom.xml
#	pom.xml
#	wsclient/pom.xml
  • Loading branch information
ghalliday committed Nov 3, 2023
2 parents 4328cf1 + 787373a commit 558017e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,12 @@ public void readResumeTest() throws Exception
}

Runtime runtime = Runtime.getRuntime();
int readSizeKB = 100;
ArrayList<HPCCRecord> resumedRecords = new ArrayList<HPCCRecord>();
for (int i = 0; i < resumeInfo.size(); i++)
{
HPCCRecordBuilder recordBuilder = new HPCCRecordBuilder(file.getProjectedRecordDefinition());
HpccRemoteFileReader<HPCCRecord> fileReader = new HpccRemoteFileReader<HPCCRecord>(fileParts[resumeFilePart.get(i)], originalRD, recordBuilder, -1, -1, true, -1, resumeInfo.get(i));
HpccRemoteFileReader<HPCCRecord> fileReader = new HpccRemoteFileReader<HPCCRecord>(fileParts[resumeFilePart.get(i)], originalRD, recordBuilder, -1, -1, true, readSizeKB, resumeInfo.get(i));

if (fileReader.hasNext())
{
Expand All @@ -202,6 +203,10 @@ public void readResumeTest() throws Exception
{
runtime.gc();
}
fileReader.close();

fileReader = null;
recordBuilder = null;
}

assertEquals("Number of records did not match during read resume.", records.size(), resumedRecords.size());
Expand Down

0 comments on commit 558017e

Please sign in to comment.