An open API service indexing awesome lists of open source software.

https://github.com/quantumplation/commit-log-11-repro

Reproduce repo for Commit Log issue #11
https://github.com/quantumplation/commit-log-11-repro

Last synced: 3 months ago
JSON representation

Reproduce repo for Commit Log issue #11

Awesome Lists containing this project

README

          

# Reproduce Repo

This repo reproduces an apparent issue with the commitlog crate.

The commitlog appears to not be reading an existing log properly.

In this repo, we create a new commit log, print the last offset,
and then print each message in the log.

Then we append the message "Test" to the log, and flush it.

I would expect this to print:

First Run:
```
Offset: None
```
Second Run:
```
Offset: Some(0)
0 - Test
```
Third Run:
```
Offset: Some(1)
0 - Test
1 - Test
```

Instead, it prints:
```
Offset: None
```

Every time the application is run.