Skip to content

Commit

Permalink
[dtest]: test_connectivity_with_cassandra_stress failed with java.lan…
Browse files Browse the repository at this point in the history
…g.NoSuchMethodError

Following the changed made in
scylladb/scylla-tools-java#369, dtest is now
failing during `test_connectivity_with_cassandra_stress` with the
following error:
```
stderr: java.lang.NoSuchMethodError: 'java.lang.String com.google.common.net.HostAndPort.getHostText()'
	at com.datastax.driver.core.ScyllaCloudDatacenter.getServer(ScyllaCloudDatacenter.java:77)
	at com.datastax.driver.core.Cluster$Builder.withScyllaCloudConnectionConfig(Cluster.java:1404)
	at com.datastax.driver.core.Cluster$Builder.withScyllaCloudConnectionConfig(Cluster.java:1397)
	at com.datastax.driver.core.Cluster$Builder.withScyllaCloudConnectionConfig(Cluster.java:1393)
	at com.datastax.driver.core.Cluster$Builder.withScyllaCloudConnectionConfig(Cluster.java:1389)
	at org.apache.cassandra.stress.util.JavaDriverClient.connect(JavaDriverClient.java:181)
	at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:213)
	at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesNative(SettingsSchema.java:84)
	at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:74)
	at org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:230)
	at org.apache.cassandra.stress.StressAction.run(StressAction.java:58)
	at org.apache.cassandra.stress.Stress.run(Stress.java:143)
	at org.apache.cassandra.stress.Stress.main(Stress.java:62)
```
  • Loading branch information
yaronkaikov authored and roydahan committed Jan 4, 2024
1 parent dfc3f02 commit 8815b20
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ public byte[] getCertificateAuthorityData() {

public InetSocketAddress getServer() {
HostAndPort parsedServer = HostAndPort.fromString(server);
return InetSocketAddress.createUnresolved(parsedServer.getHostText(), parsedServer.getPort());
return InetSocketAddress.createUnresolved(
GuavaCompatibility.INSTANCE.getHost(parsedServer), parsedServer.getPort());
}

public String getNodeDomain() {
Expand Down

0 comments on commit 8815b20

Please sign in to comment.