Files
seaweedfs/weed
chrislu c3dd0c566e Fix OffsetCommit/OffsetFetch hardcoded parsing for real clients
CRITICAL FIX: Implement proper OffsetCommit/OffsetFetch request parsing

## Issues Fixed:
- OffsetCommit was returning hardcoded 'test-topic' with partition 0
- OffsetFetch was ignoring actual topics/partitions in requests
- Consumer groups could not commit/fetch real offsets
- Parsing logic was completely stubbed out

## OffsetCommit Implementation:
- Parse RetentionTime (8 bytes, -1 for broker default)
- Parse Topics array with actual topic names
- Parse Partitions array with:
  - Partition index (4 bytes)
  - Committed offset (8 bytes)
  - Leader epoch (4 bytes)
  - Metadata (nullable string)
- Added comprehensive debug logging

## OffsetFetch Implementation:
- Parse Topics array with actual topic names
- Parse Partitions array (empty = fetch all partitions)
- Parse RequireStable flag for transactional consistency
- Handle 'fetch all partitions' case (partitionsCount = 0)
- Added comprehensive debug logging

## Protocol Compliance:
- Follows Kafka protocol specification for OffsetCommit/OffsetFetch
- Proper handling of nullable strings and arrays
- Correct byte order parsing (BigEndian)
- Robust error handling for malformed requests

## Testing:
- Compilation successful
- Debug logging will show actual parsed values
- Should enable real consumer group offset management

This fix resolves the second most critical compatibility issue
preventing real Kafka clients from managing consumer group offsets.
2025-09-12 09:07:13 -07:00
..
2025-08-09 21:47:29 -07:00
2025-07-19 23:56:17 -07:00
2025-08-30 11:15:48 -07:00
2025-08-31 23:31:28 -07:00
2025-08-22 01:15:42 -07:00
2025-09-10 11:04:42 -07:00
2025-08-30 11:15:48 -07:00
2024-06-25 09:18:11 -07:00
2025-08-30 11:15:48 -07:00
2024-02-14 08:26:38 -08:00
2025-07-19 21:43:34 -07:00
2025-03-17 23:13:27 -07:00