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
- Host: GitHub
- URL: https://github.com/quantumplation/commit-log-11-repro
- Owner: Quantumplation
- Created: 2019-08-19T14:24:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-19T14:25:12.000Z (almost 7 years ago)
- Last Synced: 2025-03-08T11:35:09.499Z (over 1 year ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.