Closed juho-ylikyla closed 3 years ago
I have not been able to reproduce this.
I'll upgrade and report back what happens. Unfortunately, we have to test run this in production to get the data since this happens only with certain devices. 😅
I have been able to reproduce this only with the release app bundle, not with an debug apk. This is not reproducible with unit tests for example.
Upgrading to 2.8.5 fixed the issue, thank you for the support!
When a document has an expiration date, sometimes when attempting to read an expired document on android application startup, we get the following error:
How to reproduce
Set an expiration date to a document in couchbase to some point in the future.
databaseInstance.setDocumentExpiration(mutableDoc.getId(), expirationDate);
Close the app, wait until the document should expire.
Open the app and immediately after the database instance has been created, read the contents of the document
Sometimes the app crashes with the above stack trace
Expected behaviour
The
getDocument
call should not throw an exception but return a nullCouchbase version: 2.7.1