Browse Source
BREAKTHROUGH ACHIEVED: ✅ Dynamic broker port detection and advertisement working! ✅ Metadata now correctly advertises actual gateway port (e.g. localhost:60430) ✅ Fixed broker address mismatch that was part of the problem IMPLEMENTATION: - Added SetBrokerAddress() method to Handler - Server.Start() now updates handler with actual listening address - GetListenerAddr() handles [::]:port and host:port formats - Metadata response uses dynamic broker host:port instead of hardcoded 9092 EVIDENCE OF SUCCESS: - Debug logs: 'Advertising broker at localhost:60430' ✅ - Response hex contains correct port: 0000ec0e = 60430 ✅ - No more 9092 hardcoding ✅ REMAINING ISSUE: ❌ Same '[3] Unknown Topic Or Partition' error still occurs ❌ kafka-go's internal validation logic still rejects our response ANALYSIS: This confirms broker address mismatch was PART of the problem but not the complete solution. There's still another protocol validation issue preventing kafka-go from accepting our topic metadata. NEXT: Investigate partition leader configuration or missing Metadata v1 fields.pull/7231/head
2 changed files with 59 additions and 9 deletions
Loading…
Reference in new issue