Skip to content

Conversation

@labkey-tchad
Copy link
Member

Rationale

TestDataGenerator had a method for streaming rows directly to a file. I removed it without understanding the consequences. I've reintroduced and expanded that functionality.

java.lang.OutOfMemoryError: Java heap space
  at java.base/java.util.HashMap.newNode(HashMap.java:1901)
  at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1232)
  at org.labkey.remoteapi.collections.CaseInsensitiveHashMap.put(CaseInsensitiveHashMap.java:98)
  at org.labkey.remoteapi.collections.CaseInsensitiveHashMap.putAll(CaseInsensitiveHashMap.java:128)
  at org.labkey.remoteapi.collections.CaseInsensitiveHashMap.<init>(CaseInsensitiveHashMap.java:32)
  at org.labkey.test.util.TestDataGenerator.addCustomRow(TestDataGenerator.java:372)
  at org.labkey.test.util.TestDataGenerator.generateRows(TestDataGenerator.java:409)
  at org.labkey.test.tests.assay.UploadLargeExcelAssayTest.testUpload200kRows(UploadLargeExcelAssayTest.java:88)

Related Pull Requests

Changes

  • Add methods to stream generated rows directly to file

@labkey-tchad labkey-tchad merged commit 05d0f01 into develop May 30, 2025
8 checks passed
@labkey-tchad labkey-tchad deleted the fb_streamRowsToFile branch May 30, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants