dcos-cassandra-service icon indicating copy to clipboard operation
dcos-cassandra-service copied to clipboard

Cluster client connection discovery issues

Open dylanwilder opened this issue 8 years ago • 2 comments

The documentation currently claims:

  1. /connection returns json of the form { "nodes": [...]}. It actually returns an object of the form {"address": [ip:port ..], "dns": [dns:port]} EDIT: turns out this is discussed twice, once correctly
  2. clients using the java client should connect using the addContactPointsWithPorts() builder method. This is incorrect. Clients should us addContactPoints() to supply hosts and withPort() to provide a unique port for the cluster

I also propose as part of this ticket to update the connection endpoint to return two new fields "port" and "hosts" - potentially deprecating the old fields - which will facilitate easier use for most cassandra client services. Thoughts?

dylanwilder avatar Oct 21 '16 22:10 dylanwilder

I can send a PR for this if no one objects.

dylanwilder avatar Oct 21 '16 22:10 dylanwilder

That'd be great, feel free to send a PR. It sounds like the docs just fell out of date.

nickbp avatar Dec 07 '16 18:12 nickbp