报异常
Opened this issue · 2 comments
GoogleCodeExporter commented
有没有发现 用FSQueue2个线程,一读一写 会报异常
Exception in thread "Thread-1" java.nio.BufferOverflowException
at java.nio.Buffer.nextPutIndex(Buffer.java:501)
at java.nio.DirectByteBuffer.putInt(DirectByteBuffer.java:647)
at com.google.code.fqueue.log.LogIndex.putWriterPosition(LogIndex.java:113)
at com.google.code.fqueue.log.LogEntity.putWriterPosition(LogEntity.java:176)
at com.google.code.fqueue.log.LogEntity.write(LogEntity.java:214)
at com.google.code.fqueue.FSQueue.add(FSQueue.java:150)
at com.google.code.fqueue.FSQueue.add(FSQueue.java:139)
Original issue reported on code.google.com by qujunxi1...@gmail.com
on 12 Apr 2012 at 3:16
GoogleCodeExporter commented
GoogleCodeExporter commented
你应该用Fqueue,FSQueue并不是线程安全
Original comment by sunli1...@gmail.com
on 27 Jun 2012 at 6:06