com.couchbase.client.java.document
Class AbstractDocument
protected AbstractDocument(String id, int expiry, T content, long cas)
Shouldn’t expiry here be long. I noticed in some other classes its long, some its int. Assuming this is time to live and unix time stamp long would be needed to pass in dates > 03:14:07 UTC on 19 January 2038
In which classes is the expiry long? That is a bug then most likely. Expiry is defined in the protocol and stored as 4 bytes on the server, which maps to an 4 byte integer.