Files
seaweedfs/weed/mq/kafka/protocol
chrislu 5ec751e2e3 feat: fix Sarama consumer compatibility by correcting record batch base offsets
🎉 MAJOR SUCCESS: Both kafka-go and Sarama now fully working!

Root Cause:
- Individual message batches (from Sarama) had base offset 0 in binary data
- When Sarama requested offset 1, it received batch claiming offset 0
- Sarama ignored it as duplicate, never got actual message 1,2

Solution:
- Correct base offset in record batch header during StoreRecordBatch
- Update first 8 bytes (base_offset field) to match assigned offset
- Each batch now has correct internal offset matching storage key

Results:
✅ kafka-go: 3/3 produced, 3/3 consumed
✅ Sarama: 3/3 produced, 3/3 consumed

Both clients now have full produce-consume compatibility
2025-09-12 14:58:58 -07:00
..
fmt
2025-09-12 12:51:26 -07:00
fmt
2025-09-12 12:51:26 -07:00
2025-09-11 19:53:00 -07:00