Browse Source

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

Co-authored-by: caishunfeng <534328519@qq.com>
3.0.0/version-upgrade
wind 3 years ago committed by GitHub
parent
commit
daca3baf66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      dolphinscheduler-remote/src/main/java/org/apache/dolphinscheduler/remote/utils/Host.java

17
dolphinscheduler-remote/src/main/java/org/apache/dolphinscheduler/remote/utils/Host.java

@ -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);
}
}

Loading…
Cancel
Save