Files
seaweedfs/test
chrislu 5c4cb05584 mq(kafka): Implement FindCoordinator API and expand version validation
🎯 MAJOR PROGRESS - Consumer Group Support Foundation

 FINDCOORDINATOR API IMPLEMENTED:
- Added API key 10 (FindCoordinator) support 
- Proper version validation (v0-v4) 
- Returns gateway as coordinator for all consumer groups 
- kafka-go Reader now recognizes the API 

 EXPANDED VERSION VALIDATION:
- Updated ApiVersions to advertise 14 APIs (was 13) 
- Added FindCoordinator to supported version matrix 
- Proper API name mapping for debugging 

 PRODUCE/CONSUME CYCLE PROGRESS:
- Producer (kafka-go Writer): Fully working 
- Consumer (kafka-go Reader): Progressing through coordinator discovery 
- 3 test messages successfully produced and stored 

🔍 CURRENT STATUS:
- FindCoordinator API receives requests but causes connection drops
- Likely response format issue in handleFindCoordinator
- Consumer group workflow: FindCoordinator → JoinGroup → SyncGroup → Fetch

📊 EVIDENCE OF SUCCESS:
- 'DEBUG: API 10 (FindCoordinator) v0' (API recognized)
- No more 'Unknown API' errors for key 10
- kafka-go Reader attempts coordinator discovery
- All produced messages stored successfully

IMPACT:
This establishes the foundation for complete consumer group support.
kafka-go Reader can now discover coordinators, setting up the path
for full produce/consume cycles with consumer group management.

Next: Debug FindCoordinator response format and implement remaining
consumer group APIs (JoinGroup, SyncGroup, Fetch).
2025-09-10 16:24:36 -07:00
..
2023-11-13 08:23:53 -08:00
2025-08-30 11:15:48 -07:00