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.
This commit is contained in:
Michael Reiche
2023-05-05 09:39:45 -07:00
committed by GitHub
parent ffe7c52f28
commit 9e932e5ea5
2 changed files with 4 additions and 4 deletions

View File

@@ -18,8 +18,8 @@
</parent>
<properties>
<couchbase>3.4.5</couchbase>
<couchbase.osgi>3.4.5</couchbase.osgi>
<couchbase>3.4.6</couchbase>
<couchbase.osgi>3.4.6</couchbase.osgi>
<springdata.commons>3.1.0-SNAPSHOT</springdata.commons>
<java-module-name>spring.data.couchbase</java-module-name>
<hibernate.validator>7.0.1.Final</hibernate.validator>

View File

@@ -120,7 +120,7 @@ class ReactiveCouchbaseTemplateKeyValueIntegrationTests extends JavaIntegrationT
reactiveCouchbaseTemplate.upsertById(User.class).one(user).block();
User foundUser = reactiveCouchbaseTemplate.findById(User.class).withLock(Duration.ofSeconds(2))
User foundUser = reactiveCouchbaseTemplate.findById(User.class).withLock(Duration.ofSeconds(4))
.one(user.getId()).block();
user.setVersion(foundUser.getVersion());// version will have changed
assertEquals(user, foundUser);
@@ -130,7 +130,7 @@ class ReactiveCouchbaseTemplateKeyValueIntegrationTests extends JavaIntegrationT
);
assertTrue(exception.retryReasons().contains(RetryReason.KV_LOCKED), "should have been locked");
} finally {
sleepSecs(2);
sleepSecs(5);
reactiveCouchbaseTemplate.removeByQuery(User.class).withConsistency(REQUEST_PLUS).all().collectList().block();
}