Skip to content

Commit fdb63e3

Browse files
authored
Prepare 6.1.2 (#12)
* Bump dependencies: maven-compiler-plugin from 3.8.1 to 3.10.1. maven-surefire-plugin from 3.0.0-M5 to 3.0.0-M7. nexus-staging-maven-plugin from 1.6.8 to 1.6.13. aerospike-client from 6.1.0 to 6.1.2. netty from 4.1.79.Final to 4.1.81.Final. commons-cli from 1.4 to 1.5.0. slf4j-api from [1.7.32,) to 2.0.0. * Bump dependencies: reactor from 3.4.21 to 3.4.22. mockito from 3.12.4 to 4.8.0. * Fix tests (align with the latest Aerospike server version). * Set version to 6.1.2.
1 parent b1d9730 commit fdb63e3

File tree

3 files changed

+22
-28
lines changed

3 files changed

+22
-28
lines changed

pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<name>aerospike-client-java-reactive</name>
88
<description>aerospike-client-java-reactive</description>
99
<url>https://github.com/aerospike/aerospike-client-java-reactive</url>
10-
<version>6.1.0</version>
10+
<version>6.1.2</version>
1111
<packaging>pom</packaging>
1212

1313
<modules>
@@ -22,18 +22,18 @@
2222

2323
<java.version>1.8</java.version>
2424

25-
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
26-
<maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
25+
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
26+
<maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
2727
<maven-javadoc-plugin.version>3.3.0</maven-javadoc-plugin.version>
28-
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
28+
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
2929
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
3030
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
3131

32-
<aerospike-client.version>6.1.0</aerospike-client.version>
33-
<netty.version>4.1.79.Final</netty.version>
34-
<commons-cli.version>1.4</commons-cli.version>
32+
<aerospike-client.version>6.1.2</aerospike-client.version>
33+
<netty.version>4.1.81.Final</netty.version>
34+
<commons-cli.version>1.5.0</commons-cli.version>
3535
<junit.version>4.13.2</junit.version>
36-
<slf4j-api.version>[1.7.32,)</slf4j-api.version>
36+
<slf4j-api.version>2.0.0</slf4j-api.version>
3737
</properties>
3838

3939
<licenses>

reactor-client/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.aerospike</groupId>
88
<artifactId>aerospike-client-java-reactive</artifactId>
9-
<version>6.1.0</version>
9+
<version>6.1.2</version>
1010
</parent>
1111
<artifactId>aerospike-reactor-client</artifactId>
1212
<packaging>jar</packaging>
@@ -19,12 +19,12 @@
1919
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2020
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2121

22-
<reactor.version>3.4.21</reactor.version>
22+
<reactor.version>3.4.22</reactor.version>
2323
<assertj.version>3.23.1</assertj.version>
2424
<netcrusher.version>0.10</netcrusher.version>
2525

2626
<skipTests>false</skipTests>
27-
<mockito.version>3.12.4</mockito.version>
27+
<mockito.version>4.8.0</mockito.version>
2828
</properties>
2929

3030
<dependencies>
Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.aerospike.client.reactor;
22

3-
import com.aerospike.client.AerospikeException;
43
import com.aerospike.client.query.IndexCollectionType;
54
import com.aerospike.client.query.IndexType;
65
import com.aerospike.client.reactor.util.Args;
@@ -9,7 +8,7 @@
98
import reactor.core.publisher.Mono;
109
import reactor.test.StepVerifier;
1110

12-
public class ReactorIndexTest extends ReactorTest{
11+
public class ReactorIndexTest extends ReactorTest {
1312

1413
public ReactorIndexTest(Args args) {
1514
super(args);
@@ -19,9 +18,8 @@ public ReactorIndexTest(Args args) {
1918
private static final String binName = "rintbin";
2019

2120
@Before
22-
public void before(){
23-
24-
Mono<Void> dropped = reactorClient.dropIndex(null,args.namespace, args.set, indexName)
21+
public void before() {
22+
Mono<Void> dropped = reactorClient.dropIndex(null, args.namespace, args.set, indexName)
2523
.onErrorResume(throwable -> true, throwable -> Mono.empty());
2624

2725
StepVerifier.create(dropped)
@@ -30,7 +28,6 @@ public void before(){
3028

3129
@Test
3230
public void shouldCreateAndDropIndex() {
33-
3431
Mono<Void> created = reactorClient.createIndex(null, args.namespace, args.set, indexName,
3532
args.getBinName(binName), IndexType.NUMERIC, IndexCollectionType.DEFAULT);
3633

@@ -42,9 +39,12 @@ public void shouldCreateAndDropIndex() {
4239
.verifyComplete();
4340
}
4441

42+
/**
43+
* Starting at Aerospike server version 6.1.0.1:
44+
* Attempting to create a secondary index which already exists now returns success/OK instead of an error.
45+
*/
4546
@Test
46-
public void shouldFailCreateIndexIfAlreadyExists() {
47-
47+
public void shouldNotFailCreateIndexIfAlreadyExists() {
4848
Mono<Void> created = reactorClient.createIndex(null, args.namespace, args.set, indexName,
4949
args.getBinName(binName), IndexType.NUMERIC, IndexCollectionType.DEFAULT);
5050

@@ -55,22 +55,16 @@ public void shouldFailCreateIndexIfAlreadyExists() {
5555
args.getBinName(binName), IndexType.NUMERIC, IndexCollectionType.DEFAULT);
5656

5757
StepVerifier.create(created)
58-
.expectErrorMatches(throwable -> throwable instanceof AerospikeException
59-
&& throwable.getMessage().contains("Create index failed"))
60-
.verify();
58+
.verifyComplete();
6159

6260
reactorClient.dropIndex(null, args.namespace, args.set, indexName).subscribe();
6361
}
6462

6563
@Test
66-
public void shouldFailDropIndexIfNotExists() {
67-
64+
public void shouldNotFailDropIndexIfNotExists() {
6865
Mono<Void> created = reactorClient.dropIndex(null, args.namespace, args.set, indexName);
6966

7067
StepVerifier.create(created)
71-
.expectErrorMatches(throwable -> throwable instanceof AerospikeException
72-
&& throwable.getMessage().contains("Drop index failed"))
73-
.verify();
68+
.verifyComplete();
7469
}
75-
7670
}

0 commit comments

Comments
 (0)