Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test for reproduction of rolling failure #37

Closed
wants to merge 2 commits into from

Conversation

lootek
Copy link

@lootek lootek commented Jun 21, 2022

This happens when write/read operations are done concurrently and the queue buffer file is rolled

This happens when write/read operations are done concurrently and the queue buffer file is rolled

filepath.Walk(tmpDir, func(path string, info fs.FileInfo, err error) error {
if strings.HasSuffix(path, ".bad") {
t.FailNow()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also t.Logf() something here, like "found .bad chunk: ${path}"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure I can add this when I have some time but anyway this is just a draft PR not meant to be merged until the bug itself is fixed, it's a kinda TDD-approach to repro/prove there is a problem ;)

@mreiferson
Copy link
Member

see #41

@mreiferson mreiferson closed this May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants