Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.confluent</groupId>
<artifactId>common</artifactId>
<version>7.0.12</version>
<version>[7.9.0,7.9.1)</version>
</parent>

<artifactId>kafka-connect-elasticsearch</artifactId>
Expand Down Expand Up @@ -39,7 +39,6 @@
<properties>
<es.version>7.17.23</es.version>
<hamcrest.version>1.3</hamcrest.version>
<mockito.version>2.28.2</mockito.version>
<gson.version>2.9.0</gson.version>
<test.containers.version>1.16.3</test.containers.version>
<kafka.connect.maven.plugin.version>0.11.1</kafka.connect.maven.plugin.version>
Expand All @@ -54,7 +53,8 @@
<dependency.check.version>6.1.6</dependency.check.version>
<confluent.maven.repo>http://packages.confluent.io/maven/</confluent.maven.repo>
<commons.codec.version>1.15</commons.codec.version>
<confluent.version>${io.confluent.common.version}</confluent.version>
<confluent.version>[7.9.0,7.9.1)</confluent.version>
<kafka.test.version>7.8.0-ccs</kafka.test.version>
<jackson.version>2.16.0</jackson.version>
<dependency.check.skip>true</dependency.check.skip>
</properties>
Expand Down Expand Up @@ -182,7 +182,15 @@
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>${kafka.version}</version>
<version>${kafka.test.version}</version>
<classifier>test</classifier>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-server-common</artifactId>
<version>${kafka.test.version}</version>
<classifier>test</classifier>
<type>test-jar</type>
<scope>test</scope>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
import org.apache.http.nio.conn.ssl.SSLIOSessionStrategy;
import org.apache.http.nio.reactor.ConnectingIOReactor;
import org.apache.http.nio.reactor.IOReactorException;
import org.apache.kafka.common.network.Mode;
import org.apache.kafka.common.network.ConnectionMode;
import org.apache.kafka.common.security.ssl.SslFactory;
import org.apache.kafka.connect.errors.ConnectException;
import org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback;
Expand Down Expand Up @@ -258,7 +258,7 @@ private void configureSslContext(HttpAsyncClientBuilder builder) {
* Gets the SslContext for the client.
*/
private SSLContext sslContext() {
SslFactory sslFactory = new SslFactory(Mode.CLIENT, null, false);
SslFactory sslFactory = new SslFactory(ConnectionMode.CLIENT, null, false);
sslFactory.configure(config.sslConfigs());

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ public void testSsl() throws Exception {
helperClient = null;

container.close();
container = ElasticsearchContainer.fromSystemProperties();
container = ElasticsearchContainer.fromSystemProperties().withSslEnabled(false);
container.start();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

package io.confluent.connect.elasticsearch.integration;

import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.TimeUnit;

Expand All @@ -41,8 +43,10 @@ public abstract class BaseConnectorIT {
protected RestApp restApp;

protected void startConnect() {
Map<String, String> workerProps = new HashMap<>();
workerProps.put("plugin.discovery","hybrid_warn");
connect = new EmbeddedConnectCluster.Builder()
.name("elasticsearch-it-connect-cluster")
.name("elasticsearch-it-connect-cluster").workerProps(workerProps)
.build();

// start the clusters
Expand Down