I am setting the document expiration using
@Document(expiry = 180, expiryUnit = TimeUnit.DAYS)
The problem is when trying to save the document i get an error.
com.couchbase.client.core.error.InvalidArgumentException: When specifying expiry as a Duration, it must not be longer than 1576800000, but got PT459797H7M11S. If you truly require a longer expiry, please specify it as an Instant instead.
I am using spring data 4.3.0
before upgrading the java sdk the issue was just a warning.