You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Adam Holmberg (Jira)" <ji...@apache.org> on 2021/03/19 17:08:00 UTC
[jira] [Updated] (CASSANDRA-16529) cassandra-stress fails when node
with port is specified
[ https://issues.apache.org/jira/browse/CASSANDRA-16529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Holmberg updated CASSANDRA-16529:
--------------------------------------
Bug Category: Parent values: Correctness(12982)Level 1 values: API / Semantic Implementation(12988)
Complexity: Normal
Discovered By: User Report
Fix Version/s: 4.0-rc
Severity: Low
Assignee: Adam Holmberg
Status: Open (was: Triage Needed)
> cassandra-stress fails when node with port is 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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org