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(shutdown): fix crash when shutting down before server and task scheduler have started. #2148

Merged

Conversation

eusebiu-constantin-petu-dbk
Copy link
Collaborator

check for nil values before stopping http server and task scheduler.

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (59f41ac) 92.10% compared to head (6d10854) 92.11%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2148   +/-   ##
=======================================
  Coverage   92.10%   92.11%           
=======================================
  Files         165      165           
  Lines       28756    28759    +3     
=======================================
+ Hits        26485    26490    +5     
+ Misses       1675     1673    -2     
  Partials      596      596           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk linked an issue Dec 20, 2023 that may be closed by this pull request
…heduler have started.

init shutdown routine after controller.Init()
check for nil values before stopping http server and task scheduler.

Signed-off-by: Petu Eusebiu <[email protected]>
@eusebiu-constantin-petu-dbk eusebiu-constantin-petu-dbk changed the title fix(shutdown): init shutdown routine after controller.Init() fix(shutdown): fix crash when shutting down before server and task scheduler have started. Dec 21, 2023
Copy link
Contributor

@andaaron andaaron left a comment

Choose a reason for hiding this comment

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

LGTM

@rchincha rchincha merged commit a46e102 into project-zot:main Jan 6, 2024
34 checks passed
@rchincha rchincha added this to the v2.0.1 milestone Jan 6, 2024
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.

[Bug]: Crash while starting
3 participants