[
https://issues.apache.org/jira/browse/CASSANDRA-16529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17305113#comment-17305113
]
Adam Holmberg commented on CASSANDRA-16529:
-------------------------------------------
[patch|https://github.com/aholmberg/cassandra/pull/48]
[ci|https://app.circleci.com/pipelines/github/aholmberg/cassandra?branch=CASSANDRA-16529]
And if this works out I have a [patch for
ccm|https://github.com/aholmberg/ccm/commit/1b26d2e214ef1003bb9b395d149e132ea4fb79b0]
that I would appreciate someone taking a look at (it's what led me to this in
the first place). I haven't created a PR yet because I need this fix for ccm CI
to pass.
> cassandra-stress fails when node with port specified
> ----------------------------------------------------
>
> Key: CASSANDRA-16529
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16529
> Project: Cassandra
> Issue Type: Bug
> Components: Tool/stress
> Reporter: Adam Holmberg
> Assignee: Adam Holmberg
> Priority: Normal
> Fix For: 4.0-rc
>
>
> When running {{cassandra-stress .... -node 127.0.0.1:53439}}
> {noformat}
> java.lang.RuntimeException: java.lang.IllegalArgumentException: Failed to add
> contact point: 127.0.0.1:53439
> at
> org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:146)
> at
> org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:114)
> at
> org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:66)
> at
> org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:154)
> at org.apache.cassandra.stress.StressAction.run(StressAction.java:56)
> at org.apache.cassandra.stress.Stress.run(Stress.java:155)
> at org.apache.cassandra.stress.Stress.main(Stress.java:63)
> Caused by: java.lang.IllegalArgumentException: Failed to add contact point:
> 127.0.0.1:53439
> at
> com.datastax.driver.core.Cluster$Builder.addContactPoint(Cluster.java:943)
> at
> org.apache.cassandra.stress.util.JavaDriverClient.connect(JavaDriverClient.java:134)
> at
> org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:137)
> ... 6 more
> Caused by: java.net.UnknownHostException: 127.0.0.1:53439: invalid IPv6
> address
> at java.net.InetAddress.getAllByName(InetAddress.java:1170)
> at java.net.InetAddress.getAllByName(InetAddress.java:1127)
> at
> com.datastax.driver.core.Cluster$Builder.addContactPoint(Cluster.java:939)
> ... 8 more
> {noformat}
> It may work using {{-port native=53439}}, but that would not be suitable for
> {{-node ... whitelist}} when nodes are on different ports.
> I'm not sure if {{host:port}} ever worked here, but {{ccm}} [seems to think
> it
> should|https://github.com/riptano/ccm/blob/6a519280e1775fe8777f93310b93b3ccb1ffd976/ccmlib/cluster.py#L645],
> and it's handled
> [elsewhere|https://github.com/apache/cassandra/blob/c591978f4d265e42d0132418005ba63a99278c75/tools/stress/src/org/apache/cassandra/stress/settings/SettingsNode.java#L102]
> in the tool.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]