-
Notifications
You must be signed in to change notification settings - Fork 214
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
Improper shutdown of iohk-monitoring switchboard #851
Comments
852: CLI: Always shutdown logging, last thing before exiting r=KtorZ a=rvl Relates to #851 # Overview - This uses `bracket` to setup and shutdown logging. - Also, while I was there modifying the `initLogging` function I added an optional CLI option to specify the logging configuration. Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]>
852: CLI: Always shutdown logging, last thing before exiting r=KtorZ a=rvl Relates to #851 # Overview - This uses `bracket` to setup and shutdown logging. - Also, while I was there modifying the `initLogging` function I added an optional CLI option to specify the logging configuration. 854: Rename Cardano.Wallet.StakePool.Metrics to Cardano.Pool.Metrics r=Anviking a=Anviking # Issue Number #711 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - [x] I have renamed `Cardano.Wallet.StakePool.Metrics` to `Cardano.Pool.Metrics` # Comments <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Johannes Lund <[email protected]>
852: CLI: Always shutdown logging, last thing before exiting r=KtorZ a=rvl Relates to #851 # Overview - This uses `bracket` to setup and shutdown logging. - Also, while I was there modifying the `initLogging` function I added an optional CLI option to specify the logging configuration. Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]>
852: CLI: Always shutdown logging, last thing before exiting r=rvl a=rvl Relates to #851 # Overview - This uses `bracket` to setup and shutdown logging. - Also, while I was there modifying the `initLogging` function I added an optional CLI option to specify the logging configuration. Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]>
That's perhaps a good candidate for automated tests
I see also that there is this option introduced:
Few questions:
I think it would be nice to have some tests illustrating the above, and also updated https://github.com/input-output-hk/cardano-wallet/wiki/Wallet-command-line-interface |
@piotr-iohk I have updated the The logging file format and defaults come from the iohk-monitoring project. I have asked if there is any documentation already available that we can use. |
944: Integration tests: logging is shut down when CLI finished r=paweljakubas a=rvl Relates to #851. # Overview Adds integration test case for clean logging shutdown. Co-authored-by: Rodney Lorrimar <[email protected]>
944: Integration tests: logging is shut down when CLI finished r=paweljakubas a=rvl Relates to #851. # Overview Adds integration test case for clean logging shutdown. Co-authored-by: Rodney Lorrimar <[email protected]>
944: Integration tests: logging is shut down when CLI finished r=rvl a=rvl Relates to #851. # Overview Adds integration test case for clean logging shutdown. Co-authored-by: Rodney Lorrimar <[email protected]>
@rvl thanks! I will close this one then and report an issue to track this
|
Context
There are currently some calls to
Cardano.BM.Setup.shutdown
(presumably to flush logs on exit). However, if any thread writes logs aftershutdown
has been called, the app deadlocks.Upstream issue: input-output-hk/iohk-monitoring-framework#415
Steps to Reproduce/Expected behavior/Actual behavior
Resolution Plan
Use
bracket
to ensure that switchboard shutdown is the last thing that happens in the app.PR
master
master
QA
-9
.Control.Exception.bracket
function.The text was updated successfully, but these errors were encountered: