internetarchive / internetarchive/gowarc

Potential race condition when checking file size

Open
#70 2 comments 0 reactions 1 assignee Claimed by @CorentinB View on GitHub
bug
Dominant language
Go
Stars
55
Forks
12
Avg merge
10d 2h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.