Skip to content

Commit 8815b20

Browse files
yaronkaikovroydahan
authored andcommitted
[dtest]: test_connectivity_with_cassandra_stress failed with java.lang.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) ```
1 parent dfc3f02 commit 8815b20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver-core/src/main/java/com/datastax/driver/core/ScyllaCloudDatacenter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public byte[] getCertificateAuthorityData() {
7474

7575
public InetSocketAddress getServer() {
7676
HostAndPort parsedServer = HostAndPort.fromString(server);
77-
return InetSocketAddress.createUnresolved(parsedServer.getHostText(), parsedServer.getPort());
77+
return InetSocketAddress.createUnresolved(
78+
GuavaCompatibility.INSTANCE.getHost(parsedServer), parsedServer.getPort());
7879
}
7980

8081
public String getNodeDomain() {

0 commit comments

Comments
 (0)