Coder Social home page Coder Social logo

Comments (6)

DimaGolomozy avatar DimaGolomozy commented on July 18, 2024

Started to debug this.
added to the lyra code in ConnectionHandler a small list to hold all the "new" delegates that been created
in line 225 (ConnectionHandler#createConnection function)
Found that, after a recovery, a new connection is been created (this is fine) but the old one is still "alive" because of the automaticRecovery flag is true in the ConnectionFactory class.
Tried to set it to false, seems to be working, the JVM does shuts down. but not right away.
any idea why?

from lyra.

michaelklishin avatar michaelklishin commented on July 18, 2024

Because Java client starting with 4.0 enables automatic recovery by default and uses non-daemon threads (also by default). Lyra should disable automatic recovery in the Java client because it performs its own.

from lyra.

michaelklishin avatar michaelklishin commented on July 18, 2024

@acogoluegnes there is a way to reproduce here. We will look into adding a new property, just like in the Java client.

from lyra.

acogoluegnes avatar acogoluegnes commented on July 18, 2024

There's a static executor service that is never shut down. With a modified version of @DimaGolomozy's test, the JVM shutdown after 1 minute, which is the default value of keep-alive time for the executor service.
Not sure how to fix this without regression.

from lyra.

acogoluegnes avatar acogoluegnes commented on July 18, 2024

My bad, the executor service is shut down in shutdown hook. Chicken-and-egg problem.

from lyra.

acogoluegnes avatar acogoluegnes commented on July 18, 2024

#83 should do part of the job, but #84 is the biggest problem. There may also other cases where the executor service used for connections is not correctly closed.

from lyra.

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.