Files
seaweedfs/test
chrislu 0f85c3d7b0 mq(kafka): Fix FindCoordinator API - Consumer group discovery working
🎯 MAJOR BREAKTHROUGH - FindCoordinator API Fully Working

 FINDCOORDINATOR SUCCESS:
- Fixed request parsing for coordinator_key boundary conditions 
- Successfully extracts consumer group ID: 'test-consumer-group' 
- Returns correct coordinator address (127.0.0.1:dynamic_port) 
- 31-byte response sent without errors 

 CONSUMER GROUP WORKFLOW PROGRESS:
- Step 1: FindCoordinator  WORKING
- Step 2: JoinGroup → Next to implement
- Step 3: SyncGroup → Pending
- Step 4: Fetch → Ready for messages

🔍 TECHNICAL DETAILS:
- Handles optional coordinator_type field gracefully
- Supports both group (0) and transaction (1) coordinator types
- Dynamic broker address advertisement working
- Proper error handling for malformed requests

📊 EVIDENCE OF SUCCESS:
- 'DEBUG: FindCoordinator request for key test-consumer-group (type: 0)'
- 'DEBUG: FindCoordinator response: coordinator at 127.0.0.1:65048'
- 'DEBUG: API 10 (FindCoordinator) response: 31 bytes, 16.417µs'
- No parsing errors or connection drops due to malformed responses

IMPACT:
kafka-go Reader can now successfully discover the consumer group coordinator.
This establishes the foundation for complete consumer group functionality.
The next step is implementing JoinGroup API to allow clients to join consumer groups.

Next: Implement JoinGroup API (key 11) for consumer group membership management.
2025-09-10 16:28:43 -07:00
..
2023-11-13 08:23:53 -08:00
2025-08-30 11:15:48 -07:00