go程序向kafka中写入数据一段时间没有数据,然后再发数据报错

kafka: Failed to produce message to topic bi-data-cti-prod-sany: kafka server: Tried to send a message to a replica that is not the leader for some partition. Your metadata is out of date., &{Topic:bi-data-cti-prod-sany Key:119 Value:{"MainType":2,"ExtType":9,"Mode":2,"ModeParm":"ag-19","MSGID":"3262","TELID":"def","MSG":{"vcc_id":"1","ag_id":"19","que_id":[],"grp_id":"0","ag_sta":"3","ag_sta_reason":"1","ag_sta_id":"4","ag_sta_bef":"2","ag_sta_time":"1596109736"}} Metadata: Offset:0 Partition:10 Timestamp:0001-01-01 00:00:00 +0000 UTC retries:0 flags:0}

你可能感兴趣的:(kafka)