Skip to content

Potential race condition when checking file size #70

@CorentinB

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```

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