Skip to content

Commit

Permalink
chore(deps): dump Hazelcast from 3.12.6 to 4.0.1 (#47)
Browse files Browse the repository at this point in the history
* remove hazelcast-client dependency (merged with hazelcast core)
* removed client retry config and using new default impl
  • Loading branch information
saig0 authored May 9, 2020
1 parent f021897 commit 7fec6e3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion connector-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<dependencies>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-client</artifactId>
<artifactId>hazelcast</artifactId>
</dependency>

<!-- test -->
Expand Down
5 changes: 0 additions & 5 deletions exporter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@
<artifactId>hazelcast</artifactId>
</dependency>

<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-client</artifactId>
</dependency>

<!-- test -->
<dependency>
<groupId>junit</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import io.zeebe.protocol.record.Record;
import org.slf4j.Logger;

import java.time.Duration;
import java.util.function.Function;

public class HazelcastExporter implements Exporter {
Expand Down Expand Up @@ -112,12 +111,8 @@ private HazelcastInstance connectToHazelcast(String remoteAddress) {
clientConfig.setProperty("hazelcast.logging.type", "slf4j");

final var networkConfig = clientConfig.getNetworkConfig();

networkConfig.addAddress(remoteAddress);

networkConfig.setConnectionAttemptPeriod((int) Duration.ofSeconds(10).toMillis());
networkConfig.setConnectionAttemptLimit(0); // try forever

logger.info("Connecting to remote Hazelcast instance [address: {}]", remoteAddress);

return HazelcastClient.newHazelcastClient(clientConfig);
Expand Down
9 changes: 1 addition & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<properties>
<version.zeebe>0.23.1</version.zeebe>
<version.hazelcast>3.12.6</version.hazelcast>
<version.hazelcast>4.0.1</version.hazelcast>
<version.exporter.protobuf>0.11.0</version.exporter.protobuf>
<version.log4j>2.13.2</version.log4j>

Expand Down Expand Up @@ -65,13 +65,6 @@
<version>${version.hazelcast}</version>
</dependency>

<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-client</artifactId>
<version>${version.hazelcast}</version>
</dependency>


<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down

0 comments on commit 7fec6e3

Please sign in to comment.