Files
seaweedfs/weed
chrislu 62ee4e5390 mq(kafka): MAJOR Fix - Dynamic broker address working, one issue remains
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.
2025-09-10 14:59:50 -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