Skip to content

Commit 9e932e5

Browse files
authored
Bump Couchbase Java SDK to 3.4.6. (#1728)
Also add more time for findByIdWithLock case - it must be more than the default timeout of 2.5 seconds. Closes #1727.
1 parent ffe7c52 commit 9e932e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</parent>
1919

2020
<properties>
21-
<couchbase>3.4.5</couchbase>
22-
<couchbase.osgi>3.4.5</couchbase.osgi>
21+
<couchbase>3.4.6</couchbase>
22+
<couchbase.osgi>3.4.6</couchbase.osgi>
2323
<springdata.commons>3.1.0-SNAPSHOT</springdata.commons>
2424
<java-module-name>spring.data.couchbase</java-module-name>
2525
<hibernate.validator>7.0.1.Final</hibernate.validator>

src/test/java/org/springframework/data/couchbase/core/ReactiveCouchbaseTemplateKeyValueIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void findByIdWithLock() {
120120

121121
reactiveCouchbaseTemplate.upsertById(User.class).one(user).block();
122122

123-
User foundUser = reactiveCouchbaseTemplate.findById(User.class).withLock(Duration.ofSeconds(2))
123+
User foundUser = reactiveCouchbaseTemplate.findById(User.class).withLock(Duration.ofSeconds(4))
124124
.one(user.getId()).block();
125125
user.setVersion(foundUser.getVersion());// version will have changed
126126
assertEquals(user, foundUser);
@@ -130,7 +130,7 @@ void findByIdWithLock() {
130130
);
131131
assertTrue(exception.retryReasons().contains(RetryReason.KV_LOCKED), "should have been locked");
132132
} finally {
133-
sleepSecs(2);
133+
sleepSecs(5);
134134
reactiveCouchbaseTemplate.removeByQuery(User.class).withConsistency(REQUEST_PLUS).all().collectList().block();
135135
}
136136

0 commit comments

Comments
 (0)