未验证 提交 daca3baf 编写于 作者: W wind 提交者: GitHub

[DS-6653][Server] fix netty create too many channels (#6654)

Co-authored-by: Ncaishunfeng <534328519@qq.com>
上级 3a8b8097
......@@ -20,6 +20,7 @@ package org.apache.dolphinscheduler.remote.utils;
import static org.apache.dolphinscheduler.common.Constants.COLON;
import java.io.Serializable;
import java.util.Objects;
/**
* server address
......@@ -134,4 +135,20 @@ public class Host implements Serializable {
+ '}';
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Host host = (Host) o;
return port == host.port && Objects.equals(address, host.address) && Objects.equals(ip, host.ip);
}
@Override
public int hashCode() {
return Objects.hash(address, ip, port);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册