apache / apache/rocketmq-client-cpp
multithread share Producer failed accidentally , error “ProducerSendSyncFailed: No route info of this topic”
- 主要語言
- C++
- 星號
- 393
- 分支
- 167
- PR 合併指標
- 30 天內沒有已合併 PR
描述
original issue: https://ask.csdn.net/questions/4332269
error log info
------------------------------------------------------------------------------------
(error): [7f0c4dffb700] no corresponding consumer found for group:TEST_TOPIC_PULL[consumerRunningInfo:1203]
(error): [7f0ac37fe700] GetTransport of:172.20.0.232:30911 get timed_mutex timeout[CreateTransport:307]
(error): [7f0ac37fe700] send failed of times:1,brokerName:broker0[sendDefaultImpl:424]
(error): [7f0ac37fe700] could not find property mq[selectOneMessageQueue:156]
(error): [7f0ac37fe700] GetTransport of:172.20.0.232:30911 get timed_mutex timeout[CreateTransport:307]
(error): [7f0ac37fe700] send failed of times:3,brokerName:broker0[sendDefaultImpl:424]
(error): [7f0ac37fe700] could not find property mq[selectOneMessageQueue:156]
(error): [7f0ac37fe700] GetTransport of:172.20.0.232:30911 get timed_mutex timeout[CreateTransport:307]
(error): [7f0ac37fe700] send failed of times:5,brokerName:broker0[sendDefaultImpl:424]
(error): [7f0ac37fe700] msg: No route info of this topic: ScannerPocTask,error:-1,in file line:434[send:137]
PS:in fact,the message has been sent successfully...
貢獻指南
研究方向
從連結的重現步驟以及 src/producer/DefaultMQProducerImpl.cpp 中的錯誤位置開始:send 約在第 434 行,selectOneMessageQueue 約在第 156 行,CreateTransport 約在第 307 行。追蹤多執行緒 producer 的路徑,並將回報的傳送失敗與「訊息已成功傳送」的說明進行比較。當共用 producer 情境不再回報虛假失敗,也不再缺少路由資訊時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- cpp
- 領域
- distributed-systems
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 32/100