GithubHelp home page GithubHelp logo

Bug: Deadlock encountered about surrealdb HOT 6 OPEN

triracle97 avatar triracle97 commented on May 27, 2024
Bug: Deadlock encountered

from surrealdb.

Comments (6)

triracle97 avatar triracle97 commented on May 27, 2024 1

I encountered it again, the issue still persists, just harder to reproduce

from surrealdb.

phughk avatar phughk commented on May 27, 2024

Heya @triracle97 thanks for raising this. The live queries are going through a significant design change that will reduce the chance of this deadlock happening significantly. We are currently seeing another perf issue with 1.4.x in #3906 - it may be loosely related or at least correlated. Will have a look once 3906 is resolved.

from surrealdb.

triracle97 avatar triracle97 commented on May 27, 2024

Thanks for replying @phughk!
Is there any side effect if I comment that line to prevent deadlock temporarily, I don't need to reuse live query and I can kill and recreate live query everytime I create new connection

from surrealdb.

phughk avatar phughk commented on May 27, 2024

Unfortunately, that isn't possible - the lock is required to check which connection to send live query notifications to.

from surrealdb.

triracle97 avatar triracle97 commented on May 27, 2024

Update for this, since updated to 1.5.0, I haven't encountered this and can't reproduce it with above method

from surrealdb.

phughk avatar phughk commented on May 27, 2024

Thanks for the update and info - we will try to tackle this in. The solution would be to have channels with messages and a single handler. It's a bit of work and we are very focused on cloud and 2.0 at the moment. But this is on our radar. Hopefully retrying can be a way around this

from surrealdb.

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.