Coder Social home page Coder Social logo

Comments (6)

NimaAra avatar NimaAra commented on July 23, 2024

This library does not utilize multiple threads. All operations are executed on whatever thread your application is doing the publication/subscription on.

Were there any exceptions thrown by the hub? How about any exceptions thrown by the application?

I cannot provide much help without knowing about your application as a whole. I suggest capturing a dump when this happens in production and going through it to see what the thread was doing at the time.

Alternatively you can download the source, add logging to Subscriptions.Unregister and observe the behaviour.

from easy.messagehub.

GraySerg avatar GraySerg commented on July 23, 2024

No exceptions, just hangs. Start and stop occures in one thread. It's a pity, but impossible to take dump from production server.

from easy.messagehub.

NimaAra avatar NimaAra commented on July 23, 2024

Try referencing the library directly and adding some logging. I cannot think of anything else.

from easy.messagehub.

NimaAra avatar NimaAra commented on July 23, 2024

I am closing the issue for now, feel free to re-open it once you have tried my suggestion or have more data we can work with.

from easy.messagehub.

ummarbhutta avatar ummarbhutta commented on July 23, 2024

Hi @NimaAra and @GraySerg

I think that I hit a similar issue on one of our test server. The state of application is totally non responsive state, and interestingly all other threads of application stopped as well. Bit details as follows

Environment

  • EasyMessageHub version 4.0.1, I just noticed latest is 5.0.0 is it too old?
  • ASP dot net core 3.1 based WebAPI application.
  • Deployed on Ubuntu 18.04 LTS.
  • In a Docker container.
  • docker version is Docker version 19.03.8, build afacb8b7f0
  • docker-compose version is docker-compose version 1.25.5, build 8a1c60f6

Observation

  • In our application we are making ~3 subscriptions in a minutes and then unsubscribing them at end.
  • We left our system running for overnight testing, and the second day in morning the whole application was stuck and the RESTFul endpoints are not accessible as well.
  • Reviewing the log reveals that it went for MessageHub.Instance.Unsubscribe and never returns, blocking everything.
  • Since then I have been retrying to reproduce it again, but it haven't appeared again.

In short, I think what @GraySerg has reported, seems to be a real bug, I think we should try to find the root cause of issue.

@GraySerg , did you find any clue on your side?

from easy.messagehub.

NimaAra avatar NimaAra commented on July 23, 2024

@ummarbhutta Can you please upgrade to the latest and let me know if this happen again.

from easy.messagehub.

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.