Skip to content

New addContactPoints method for resolving multiple InetAddress from one hostname#340

Merged
olim7t merged 1 commit into
apache:2.0from
olvesh:seeds_to_many_ips
Jun 17, 2015
Merged

New addContactPoints method for resolving multiple InetAddress from one hostname#340
olim7t merged 1 commit into
apache:2.0from
olvesh:seeds_to_many_ips

Conversation

@olvesh
Copy link
Copy Markdown

@olvesh olvesh commented May 13, 2015

This will make the cluster not only use the first available InetAddress but all that is returned from the host lookup.

This will greatly simplify setups as we can add a single cassandra_seeds dns record and have that statically added to our configuration.

As suggested by @olim7t I added this feature as a new method, keeping the symmetry with other addContactPoint(s) methods.

Imo this should go in to the main addContactPoint method, as it should be transparent if the host points to one or many InetAddresses. But that is in the end the decision of you guys.

…ss but all that is returned from the host lookup.

This will greatly simplify setups as we can add a single cassandra_seeds dns record and have that statically added to our configuration.
@olim7t
Copy link
Copy Markdown
Contributor

olim7t commented May 15, 2015

I agree that this should eventually be the default, but I don't want to introduce it in a minor version to avoid errors if someone has a broken DNS configuration.

We have a ticket where we track the stuff we want to make the default in the next major version (JAVA-616), I've added this to the list.

@olim7t
Copy link
Copy Markdown
Contributor

olim7t commented May 28, 2015

I cherry-picked your commit to make this the default in 2.2 (#360). I will merge this PR to the older branches.

@olvesh
Copy link
Copy Markdown
Author

olvesh commented May 31, 2015

👍

olim7t added a commit that referenced this pull request Jun 17, 2015
New addContactPoints method for resolving multiple InetAddress from one hostname
@olim7t olim7t merged commit 0bef855 into apache:2.0 Jun 17, 2015
Sfurti-yb pushed a commit to yugabyte/cassandra-java-driver that referenced this pull request Dec 8, 2023
Prepare code compatibility for newer Java versions that introduced overrides for ByteBuffer.flip() returning ByteBuffer instead of Buffer.

[closes apache#340]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants