CollectionManager.updateCollection cannot clear max expiry

Description

Suggested Release note:

With Couchbase Server versions that support updating a collection's max expiry, it's now possible to clear the expiry by passing `Duration.ZERO` for the new value.

 

Once a collection has a maxTTL, the expiry cannot be unset using the JVM SDK management API, because ClassicCoreCollectionManagerOps.applySettingsToForm omits the `maxTTL` parameter if it would be zero.

In order to clear the maxTTL, the client must pass zero.

 

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created November 21, 2023 at 11:00 PM
Updated November 22, 2023 at 5:23 PM
Resolved November 22, 2023 at 5:23 PM
Instabug