peter-lawrey / Java-Chronicle

Java Indexed Record Chronicle
1.22k stars 193 forks source link

Random error in InProcessChroncileTest under load. #23

Closed peter-lawrey closed 8 years ago

peter-lawrey commented 11 years ago

testOverTCP(com.higherfrequencytrading.chronicle.impl.InProcessChronicleTest) Time elapsed: 0.07 sec <<< ERROR! java.nio.BufferUnderflowException at java.nio.Buffer.nextGetIndex(Buffer.java:478) at java.nio.DirectByteBuffer.getLong(DirectByteBuffer.java:731) at com.higherfrequencytrading.chronicle.tcp.InProcessChronicleSink.readNextExcerpt(InProcessChronicleSink.java:171) at com.higherfrequencytrading.chronicle.tcp.InProcessChronicleSink.readNext(InProcessChronicleSink.java:117) at com.higherfrequencytrading.chronicle.tcp.InProcessChronicleSink$SinkExcerpt.nextIndex(InProcessChronicleSink.java:96) at com.higherfrequencytrading.chronicle.impl.InProcessChronicleTest.testOverTCP(InProcessChronicleTest.java:78)

Fine when run by itself.

peter-lawrey commented 8 years ago

The current version is Chronicle Queue v4.