Skip to content

Commit c19a6b4

Browse files
dfa1claude
andcommitted
test: add minimal reproducer for vortex-data/vortex#8075
Session has no close() API; repeated writes exhaust native memory and crash the JVM. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent d697d05 commit c19a6b4

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package io.github.dfa1.datastore;
2+
3+
import dev.vortex.api.Partition;
4+
import dev.vortex.api.Session;
5+
import org.junit.jupiter.api.Test;
6+
import org.junit.jupiter.api.io.TempDir;
7+
8+
import java.io.IOException;
9+
import java.nio.file.Path;
10+
import java.time.LocalDate;
11+
12+
/**
13+
* Minimal reproducer for <a href="https://github.com/vortex-data/vortex/issues/8075">vortex 8075</a>.
14+
*/
15+
class CrashTest {
16+
17+
@Test
18+
void reproducer(@TempDir Path dir) throws IOException {
19+
VortexOhlcStore store = new VortexOhlcStore();
20+
int i = 0;
21+
while (true) {
22+
System.out.println(i);
23+
OhlcGenerator aaa = new OhlcGenerator(new Symbol("AAA"), LocalDate.now(), 10, 10);
24+
store.write(aaa.stream(10), dir.resolve("a" + i++));
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)