Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into fix/233
  • Loading branch information
BCaxelbecker authored May 10, 2019
commit 53f264021628db16ad62a5f3db47887c60b91dfd
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public void init(final EndpointResolver resolver) {
}

@Override

public HostSet resolve(final boolean initial, final boolean closeConnections) {

if (!initial && isExpired()) {
Expand All @@ -72,7 +73,6 @@ public HostSet resolve(final boolean initial, final boolean closeConnections) {
LOGGER.info("Resolve " + endpoints.size() + " Endpoints");
LOGGER.debug("Endpoints " + Arrays.deepToString(endpoints.toArray()));


if (!endpoints.isEmpty()) {
hosts.clear();
}
Expand All @@ -86,6 +86,8 @@ public HostSet resolve(final boolean initial, final boolean closeConnections) {
if (s.length == 2) {
final HostDescription description = new HostDescription(s[0], Integer.valueOf(s[1]));
hosts.addHost(HostUtils.createHost(description, maxConnections, connectionFactory));
} else {
LOGGER.warn("Skip Endpoint (Missung Port)" + endpoint);
}

} else {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.