Skip to content

[BUG] Loading multilog fails after multiple restarts  #153

@haal

Description

@haal

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions