Facing a crash when using Collection.setDocumentExpiration() over multiple documents in a loop

Sure @blake.meike

Im using CouchbaseLite v3.1.1

there is a field to input number of records to insert take a number n and click the button Add Docs which add n random documents

once items are added can click the delete docs button to start the document expiration process

please add atleast 5000+ docs
some time the expiration process is completing successfully, in that case please increase the number of records

if there is anything else i can help you with please ask.

I suggest you try v3.1.3.

I just ran your code with 50,000 items and it worked just fine.

I have a few other suggestions:

  • You are running insertHandle on the UI thread. That is broken.
  • You have logging turned off. If you turn it on, you might be able to figure out what you are doing wrong
  • You should look into the method Database.inBatch. A version of your code that I modified to use that method runs about 10x faster.

I have succeeded in replicating this.
I’ve opened CBL-5258 to track the issue.

2 Likes

It’s a random uuid generated by java UUID class.
.
.

Hi @blake.meike any update on the issue

You should be able to check on the jira ticket that Blake opened.

As @mreiche said, just click on the ticket.

There are a lot of people on holiday, just now: things are moving a little slower than usual. Will have updates in the New Year.

Okay @blake.meike @mreiche thanks