Git Product home page Git Product logo

Comments (7)

Sandychuang8 avatar Sandychuang8 commented on August 18, 2024 1

.Net 5 is not officially supported. CBL issue is created to verify if the issue with the given steps here can be reproduced in .Net Core 3.1 and .Net 6.

from couchbase-lite-net.

Sandychuang8 avatar Sandychuang8 commented on August 18, 2024

Hi there,
Just want to check how did you dispose the database in the custom database dispose method?
I suggest just simply call (database instance).Delete() will do. Delete() will handle database close/dispose and then delete the database.

from couchbase-lite-net.

Billuc avatar Billuc commented on August 18, 2024

Hi,

Yes, sorry I should have provided that.
So, for step 4, we have _database.Clear(); in the constructor.
And this is the Dispose method, that is called at the end of the tests :

        public void Dispose()
        {
            _database.Delete();
            _database.Dispose();
        }

Is the call to Dispose too much ? May it be the reason for the problems we encounter ?

Thanks

from couchbase-lite-net.

Sandychuang8 avatar Sandychuang8 commented on August 18, 2024

Delete() will dispose the database. And I just noticed
There are 5 tests classes creating a new database with at least 5 tests in each (so there will be more than 25 databases created)
and at this point I think I would like to see a repro project to determine the cause of the issue you are seeing.

from couchbase-lite-net.

Billuc avatar Billuc commented on August 18, 2024

Ok thanks !
Yeah sure, I will create a project whenever I can :)

from couchbase-lite-net.

Sandychuang8 avatar Sandychuang8 commented on August 18, 2024

Close issue for now. Please feel free to reopen the issue when you have a repro case.

from couchbase-lite-net.

Billuc avatar Billuc commented on August 18, 2024

Ok, I think I found what went wrong ! I haven't got the time to create a repro so I can't be 100% sure though.

As I explained earlier, each of our test creates a brand new database and deletes it after the test is finished.
While fiddling with my tests, I noticed that when the number of tests was quite small everything goes well, but once the number of tests running in parallel becomes greater than 32, I get the error mentioned above. It seems I can't have more than 32 couchbase databases alive at the same time (I may have missed it in the docs).

So to solve the issue, I configured Xunit to stop running tests in parallel and now everything is working properly.

from couchbase-lite-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.