Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: freeze if asking for warnings shortly after a restart #94

Open
C-Otto opened this issue Feb 14, 2024 · 0 comments
Open

Bug: freeze if asking for warnings shortly after a restart #94

C-Otto opened this issue Feb 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@C-Otto
Copy link
Owner

C-Otto commented Feb 14, 2024

Describe the bug
With too many nodes/channels/warnings that could be computed, using the /api/warnings endpoint shortly after a restart causes lnd-manageJ to freeze.

To Reproduce
Restart lnd-manageJ on a node with many (also closed) channels, then run
curl -s http://localhost:8081/api/warnings.

Expected behavior
Command returns after a couple of seconds (at most).

Additional context
It's possible that not enough threads are available for the computation. As most data is not cached after a restart, more computations (and, thus, threads) are used to provide the necessary data. This is done in parallel, possibly even using multiple threads for a single channel. Requesting details for some peers with lots of (closed) channels seems to fix this issue.

1049eed

@C-Otto C-Otto added the bug Something isn't working label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant