Panic when uuid.New().String()
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 440
- PR merge metrics
- No merged PRs in 30d
Description
I run a horizontally scaled application in k8s producing UUIDs for messages. However, rarely, some replicated pods restart due to a panic coming for the UUID library.
```
panic: unexpected EOF
goroutine 197286 [running]:
github.com/google/uuid.Must(...)
/home/vagrant/go/pkg/mod/github.com/google/uuid@v1.3.0/uuid.go:178
github.com/google/uuid.New(...)
/home/vagrant/go/pkg/mod/github.com/google/uuid@v1.3.0/version4.go:14
```
Is there any OS/library causing these issues, like too little entropy? On my local machine, I run a test producing billions of UUIDs without any panic.
Contributor guide
Assessment
This issue has not been assessed yet.