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

FIX gracefully handle logging exceptions in Argus and Colossus #4963

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

zeeshanakram3
Copy link
Contributor

Context

As reported by @kdembler the Distributor node crashed with restarting the ES node, or if providing the wrong credentials. This happened because the code was not gracefully the exceptions

Fix

This PR gracefully handles logging exceptions in Argus and Colossus

@@ -50,7 +50,7 @@
"url-join": "^4.0.1",
"winston": "^3.3.3",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we maybe bump winston as well while we're at it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I tried to update the winston to the most recent version and it turned out that it contains breaking changes (so will have to update code at couple of places). So unless we absolutely want to update the dependency, I would say it's fine for now. WDYT?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, let's ignore in that case

Copy link
Member

@kdembler kdembler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some weird reason I can't get it to connect to local ES when developing, but seems that was also the case for me before this PR.

That said, tested with public ES and it indeed caught the exception and didn't crash on failed write, so all good, thanks!

@mnaamani mnaamani self-requested a review November 10, 2023 19:07
@mnaamani mnaamani merged commit 1289bab into Joystream:master Nov 10, 2023
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants