confluo icon indicating copy to clipboard operation
confluo copied to clipboard

[BUG] Loading multilog fails after multiple restarts

Open haal opened this issue 5 years ago • 0 comments

Describe the bug

Loading multilog after multiple restarts fails.

How to reproduce the bug?

The test case is:

  1. start confluo using data path (e.g. --data-path=/var/db)
  2. 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();
  1. stop the confluo server
  2. start confluo server using same data path as in step 1
  3. check count of items - outputs 1
RpcClient client = new RpcClient(HOST, PORT);
client.loadAtomicMultilog(MULTILOG_NAME);
System.out.println(client.numRecords());
client.disconnect();
  1. stop the confluo server
  2. start confluo server using same data path as in step 1
  3. 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

haal avatar Jan 12 '20 19:01 haal