brpc服务端下电一个节点,brpc客户端并没有重新选择链接,持续上报EPOLLOUT错误,连接超时。

Open
#3,148 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

No source file or test is identified. Start by reproducing the client behavior while shutting down one server node and inspect how EPOLLOUT errors and socket reconnection are handled; done means the client retries, selects a healthy node, and does not wait for the powered-off node to return.

Written by the indexing model from the issue text.

Description

Describe the bug
出现问题的场景:brpc服务端下电一个节点,brpc客户端并没有重新选择链接,持续上报EPOLLOUT错误,连接超时。
Image
待brpc服务端重新上电后,客户端连接恢复。

Image

To Reproduce
目前只遇到过一次

Expected behavior
期望brpc重新发起socket连接,并且连接成功,而不是一直等待原节点。

Versions
OS:ubuntu
Compiler:g++
brpc:1.9
protobuf:

Additional context/screenshots

Dominant language
C++
Stars
17.6k
Forks
4.2k
Avg merge
3d 17h
Merged PRs (30d)
72

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/brpc

All issues in apache/brpc

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.