[Bug] Keep-alive timeout when send/receive large message
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- cpp
研究方向
從 ClientConnection.cc 開始,特別檢查硬編碼的 30 秒 keep-alive 間隔及其 deadline timer。使用 client 3.2 和 server 3.2.2,在 5M 頻寬下傳送同步 300M 訊息進行重現,然後比較同步和非同步 producer 的行為以及 consumer 的行為。當大型資料的傳送或接收能夠完成,且 keep-alive timeout 不會關閉連線時,即視為完成。
由索引模型根據 Issue 內容生成。
描述
Search before asking
- I searched in the issues and found nothing similar.
Version
client 3.2
server 3.2.2
Minimal reproduce step
Use a producer to send one 300M message to the broker using synchronous mode with 5M bandwidth, just make sure the message to be sent in almost one minute.
BTW, it works fine for small message, for example, messages less than 100M can be successfully sent or consumed within 5M bandwidth
What did you expect to see?
Send successfully
What did you see instead?
2024-04-28 16:58:11.157 WARN [40520] D:\a\pulsar-client-cpp\pulsar-client-cpp\lib\ClientConnection:1158 | [10.214.4.3:49457 -> 8.218.192.194:6650] Forcing connection to close after keep-alive timeout
2024-04-28 16:58:11.157 ERROR [40520] D:\a\pulsar-client-cpp\pulsar-client-cpp\lib\ClientConnection:1234 | [10.214.4.3:49457 -> 8.218.192.194:6650] Connection closed with ConnectError
Anything else?
When I use asynchronous mode in the producer side, this issue is mitigated, while the consumer stuck into it. I find the keepalive interval is hardcoded in ClientConnection.cc and the value is 30 seconds, and I also find it executed by a deadline timer which run in a separated thread, thus I am not sure if this has something to do with the large message sending or receiving
Are you willing to submit a PR?
- I'm willing to submit a PR!
- 主要語言
- C++
- 星號
- 72
- 分支
- 93
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
apache/pulsar-client-cpp 的其他 Issue
-
難度 3/5 半天 新手友好度 62/100
apache/pulsar-client-cpp#623 ·
-
[Bug] MessageTest fails to build with GCC 15.3.0 and 16.2.1 (-Werror=stringop-truncation)可能已有人在做 @davlgd 於 4 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 25/100
apache/pulsar-client-cpp#621 ·
-
難度 4/5 3-5 天 新手友好度 55/100
apache/pulsar-client-cpp#620 ·
-
難度 4/5 3-5 天 新手友好度 48/100
apache/pulsar-client-cpp#619 ·
-
難度 4/5 3-5 天 新手友好度 20/100
apache/pulsar-client-cpp#618 ·
查看 apache/pulsar-client-cpp 的全部 Issue
相似的 Issue
-
bug libcudf
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 2 天內回覆
-
level/task module/cloud monitoring type/maintenance
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
LadybirdBrowser/ladybird#13809 ·
維護者通常 1 天內回覆
-
bug module:nodes tests
難度 2/5 1-3 小時 新手友好度 78/100
rocketride-org/rocketride-server#3020 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 9 天內回覆