Skip to content

Commit

Permalink
libs: migrate to hazelcast-4.1.8
Browse files Browse the repository at this point in the history
future release with improvements and fixes

see: https://github.com/hazelcast/hazelcast/releases/tag/v4.1

Obseletes: PR#111
Acked-by: Paul Millar
Target: master
  • Loading branch information
kofemann committed Jan 24, 2022
1 parent 06cebe9 commit a045ca7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
5 changes: 0 additions & 5 deletions dlm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
</dependency>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-client</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2020 Deutsches Elektronen-Synchroton,
* Copyright (c) 2017 - 2022 Deutsches Elektronen-Synchroton,
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
*
* This library is free software; you can redistribute it and/or modify
Expand All @@ -20,8 +20,7 @@
package org.dcache.nfs.v4.nlm;

import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.MultiMap;

import com.hazelcast.multimap.MultiMap;
import java.util.Base64;
import java.util.Collection;
import java.util.concurrent.TimeUnit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void setUp() throws Exception {
"127.0.0.1:" + hzSerrver.getCluster().getLocalMember().getAddress().getPort())
);

config.getGroupConfig().setName(hzSerrver.getConfig().getGroupConfig().getName());
config.setClusterName(hzSerrver.getConfig().getClusterName());
hzClient = HazelcastClient.newHazelcastClient(config);
lm1 = new DistributedLockManager(hzClient, "distributed-byte-range-lock");
lm2 = new DistributedLockManager(hzClient, "distributed-byte-range-lock");
Expand Down
6 changes: 2 additions & 4 deletions dlm/src/test/resources/hazelcast.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.10.xsd"
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-4.1.xsd"
xmlns="http://www.hazelcast.com/schema/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<group>
<name>nfs-dlm-test</name>
</group>
<cluster-name>nfs-dlm-test</cluster-name>

<properties>
<property name="hazelcast.logging.type">slf4j</property>
Expand Down
7 changes: 1 addition & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,7 @@
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
<version>3.9.2</version>
</dependency>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-client</artifactId>
<version>3.9.2</version>
<version>4.1.8</version>
</dependency>
<dependency>
<groupId>com.sleepycat</groupId>
Expand Down

0 comments on commit a045ca7

Please sign in to comment.