Skip to content

Commit a045ca7

Browse files
committed
libs: migrate to hazelcast-4.1.8
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
1 parent 06cebe9 commit a045ca7

File tree

5 files changed

+6
-19
lines changed

5 files changed

+6
-19
lines changed

dlm/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
<groupId>com.hazelcast</groupId>
3030
<artifactId>hazelcast</artifactId>
3131
</dependency>
32-
<dependency>
33-
<groupId>com.hazelcast</groupId>
34-
<artifactId>hazelcast-client</artifactId>
35-
<scope>test</scope>
36-
</dependency>
3732
<dependency>
3833
<groupId>com.google.guava</groupId>
3934
<artifactId>guava</artifactId>

dlm/src/main/java/org/dcache/nfs/v4/nlm/DistributedLockManager.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017 - 2020 Deutsches Elektronen-Synchroton,
2+
* Copyright (c) 2017 - 2022 Deutsches Elektronen-Synchroton,
33
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
44
*
55
* This library is free software; you can redistribute it and/or modify
@@ -20,8 +20,7 @@
2020
package org.dcache.nfs.v4.nlm;
2121

2222
import com.hazelcast.core.HazelcastInstance;
23-
import com.hazelcast.core.MultiMap;
24-
23+
import com.hazelcast.multimap.MultiMap;
2524
import java.util.Base64;
2625
import java.util.Collection;
2726
import java.util.concurrent.TimeUnit;

dlm/src/test/java/org/dcache/nfs/v4/nlm/DistributedLockManagerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void setUp() throws Exception {
3333
"127.0.0.1:" + hzSerrver.getCluster().getLocalMember().getAddress().getPort())
3434
);
3535

36-
config.getGroupConfig().setName(hzSerrver.getConfig().getGroupConfig().getName());
36+
config.setClusterName(hzSerrver.getConfig().getClusterName());
3737
hzClient = HazelcastClient.newHazelcastClient(config);
3838
lm1 = new DistributedLockManager(hzClient, "distributed-byte-range-lock");
3939
lm2 = new DistributedLockManager(hzClient, "distributed-byte-range-lock");

dlm/src/test/resources/hazelcast.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.10.xsd"
1+
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-4.1.xsd"
22
xmlns="http://www.hazelcast.com/schema/config"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
44

5-
<group>
6-
<name>nfs-dlm-test</name>
7-
</group>
5+
<cluster-name>nfs-dlm-test</cluster-name>
86

97
<properties>
108
<property name="hazelcast.logging.type">slf4j</property>

pom.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,7 @@
199199
<dependency>
200200
<groupId>com.hazelcast</groupId>
201201
<artifactId>hazelcast</artifactId>
202-
<version>3.9.2</version>
203-
</dependency>
204-
<dependency>
205-
<groupId>com.hazelcast</groupId>
206-
<artifactId>hazelcast-client</artifactId>
207-
<version>3.9.2</version>
202+
<version>4.1.8</version>
208203
</dependency>
209204
<dependency>
210205
<groupId>com.sleepycat</groupId>

0 commit comments

Comments
 (0)