question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

4.27.0 introduced a change that prevents the event loop from being cleaned up properly

See original GitHub issue

https://github.com/evanlucas/ioredis-sentinel-hang is how I was able to reproduce it. We rely on calling quit in all of our jobs/workers/services and if the event loop is not cleaned up, it prevents node from cleanly exiting the process. It looks like it is the new failover detection mechanism that was added. I’m seeing additional TCP sockets being opened, but never closed.

This only seems to occur when using redis sentinel.

Thanks!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
luincommented, Jun 14, 2021

Hey @evanlucas, let’s leave this open as the root issue hasn’t been fixed.

1reaction
luincommented, Jun 5, 2021

Hey @evanlucas, thanks for the reproducible repo! Calling .disconnect() should properly clean up everything. We should take a look for a fix for quit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unreal Engine 4.27 Release Notes
Overview of new and updated features in Unreal Engine 4.27.
Read more >
ioredis - Bountysource
We rely on calling quit in all of our jobs/workers/services and if the event loop is not cleaned up, it prevents node from...
Read more >
EV - perl interface to libev, a high performance ... - MetaCPAN
The loop will automatically be destroyed when it is no longer referenced by any watcher and the loop object goes out of scope....
Read more >
Event Loop — Python 3.11.1 documentation
Source code: Lib/asyncio/events.py, Lib/asyncio/base_events.py Preface The event loop is the core of every asyncio application. Event loops run asynchronous ...
Read more >
The event loop - JavaScript - MDN Web Docs - Mozilla
If there is no other message in the queue, and the stack is empty, the message is processed right after the delay. However,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found