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:
4
pom.xml
4
pom.xml
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user