Skip to content

[Bug] [Server] Netty client create too many channel and make busy network #6653

@caishunfeng

Description

@caishunfeng

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

version: dev

When after the stress test, I found the busy network between master and worker, but no any log. And then I dump the network package and found many heartbeat report.
c5c20ffb4c6220c43924557b0478fd5

I try to run the test method, which use netty client to send many commands, and the channel created number is equal to the commands number.
When debug, I found that the key of map to manage channels is Host, a Object without override hashcode and equals.

What you expected to happen

Netty client create less channel.

How to reproduce

Run the test method, which use netty client to send many commands.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions