Skip to content

Potential race condition when checking file size #70

Description

@CorentinB
panic: open ./warcs/VIDEO-20250130132906660-00005-crawler01.warc.gz.open: no such file or directory

goroutine 32124 [running]:
github.com/CorentinB/warc.isFileSizeExceeded({0xc16c7faf40?, 0xc046388be0?}, 0x408f400000000000)
        /root/go/pkg/mod/github.com/!corentin!b/warc@v0.8.57/utils.go:284 +0xf5
github.com/CorentinB/warc.recordWriter(0xc04ce75440, 0xc04a67f7a0, 0xc041956a80, 0xc046388bf0)
        /root/go/pkg/mod/github.com/!corentin!b/warc@v0.8.57/warc.go:148 +0x559
created by github.com/CorentinB/warc.(*RotatorSettings).NewWARCRotator in goroutine 1
        /root/go/pkg/mod/github.com/!corentin!b/warc@v0.8.57/warc.go:72 +0x8a```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions