Coder Social home page Coder Social logo

Comments (4)

flozano avatar flozano commented on May 18, 2024

I think this would be a great feature, please +1 it.

from hazelcast.

mmedenjak avatar mmedenjak commented on May 18, 2024

As the ILock implementation has been replaced with a raft implementation in 4.0, the difficulty for this enhancement has increased. Still, it is possible.

from hazelcast.

metanet avatar metanet commented on May 18, 2024

CP Subsystem already allows you to destroy locks, or actually any CP data structure. The only limitation is, once you destroy a CP data structure, you cannot reuse it before also destroying and restarting the underlying CP group.

https://docs.hazelcast.org/docs/3.12.6/manual/html-single/index.html#cp-subsystem

If you call the DistributedObject.destroy() method on a CP data structure proxy, that data structure is terminated on the underlying CP group and cannot be reinitialized until the CP group is force-destroyed. For this reason, please make sure that you are completely done with a CP data structure before destroying its proxy.

from hazelcast.

prasanthnath avatar prasanthnath commented on May 18, 2024

This is indeed be a very helpful feature. We have a scenario where we create locks on the fly but could not destroy them after the usage as we may have to reuse the lock again. As they are not getting destroyed, we are getting OOM after a period of time. This is forcing us to do a periodic restart of Hazelcast servers.

from hazelcast.

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.