Bug Summary
Under S3 slowdown/backpressure, multiple concurrent calls to DefaultWriter.uploadBulk0() can reuse the same baseOffset, causing duplicate offsets. This violates WAL monotonicity guarantees and breaks Kafka-compatible behavior.
Steps to Reproduce
- Pause MinIO (docker pause)
- Run two high-throughput producers
- Observe overlapping offsets in WAL logs
Expected
Offsets must increase strictly and never repeat.
Actual
Concurrent bulks reuse the same start offset under backpressure.
Maintainers: Please apply the labels bug, area/wal, severity/high.
I am preparing a PR with a fix + concurrency test.