confluo
confluo copied to clipboard
[BUG] Loading multilog fails after multiple restarts
Describe the bug
Loading multilog after multiple restarts fails.
How to reproduce the bug?
The test case is:
- start confluo using data path (e.g. --data-path=/var/db)
- create multilog and write to it
RpcClient client = new RpcClient(HOST, PORT);
client.createAtomicMultilog(MULTILOG_NAME, "{ msg: STRING(8) }", StorageMode.DURABLE);
client.append("abcdefgh");
client.disconnect();
- stop the confluo server
- start confluo server using same data path as in step 1
- check count of items - outputs 1
RpcClient client = new RpcClient(HOST, PORT);
client.loadAtomicMultilog(MULTILOG_NAME);
System.out.println(client.numRecords());
client.disconnect();
- stop the confluo server
- start confluo server using same data path as in step 1
- retry step 5 - it fails with Floating point exception
Expected behavior
Step 8 should not fail and should output 1
Detailed logs
Error log: Floating point exception