-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: nil pointer in GC #2055
fix: nil pointer in GC #2055
Conversation
@@ -55,7 +55,7 @@ func (wfc *WorkflowController) updateConfig(cm *apiv1.ConfigMap) error { | |||
} | |||
} | |||
wfc.session = nil | |||
wfc.offloadNodeStatusRepo = nil | |||
wfc.offloadNodeStatusRepo = sqldb.ExplosiveOffloadNodeStatusRepo | |||
wfc.wfArchive = sqldb.NullWorkflowArchive | |||
persistence := wfc.Config.Persistence |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to do nil check here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no - at this line of code wc.Config
cannot be nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Codecov Report
@@ Coverage Diff @@
## master #2055 +/- ##
========================================
Coverage ? 8.78%
========================================
Files ? 61
Lines ? 34576
Branches ? 0
========================================
Hits ? 3037
Misses ? 31148
Partials ? 391
Continue to review full report at Codecov.
|
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.This PR adds:
no-db
test suite and set-up options, e.g.make start DB=no-db