-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-30413 Add option to always capture post-mortem info #17853
HPCC-30413 Add option to always capture post-mortem info #17853
Conversation
https://track.hpccsystems.com/browse/HPCC-30413 |
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.
Functionality looks good. A couple of helm comments.
helm/hpcc/templates/_helpers.tpl
Outdated
@@ -689,13 +689,13 @@ Check that the storage and spill planes for a component exist | |||
Add command for a component | |||
*/}} | |||
{{- define "hpcc.componentCommand" -}} | |||
{{- if .me.valgrind -}} | |||
{{- if .me.valgrind -}} |
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 don't normally indent the root statements inside a define. Was this deliberate?
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.
you're right we don't (it looks clearer, but..), I'll revert.
helm/hpcc/templates/_helpers.tpl
Outdated
@@ -713,6 +713,9 @@ Add extra args for a component | |||
{{- $debugPlane := .me.debugPlane | default (include "hpcc.getFirstPlaneForCategory" (dict "root" .root "category" "debug")) -}} | |||
{{- include "hpcc.checkPlaneExists" (dict "root" .root "planeName" $debugPlane) -}} | |||
{{- $prefix := include "hpcc.getPlanePrefix" (dict "root" .root "planeName" $debugPlane) -}} | |||
{{- if or (and (hasKey .me "expert") .me.expert.alwaysPostMortem) (and (hasKey .root.Values.global "expert") .root.Values.global.expert.alwaysPostMortem) -}} |
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.
This isn't short circuited on old versions of helm.
MeExpert := .me.expert | dict
?
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.
hm, yes good point, will change.
@ghalliday - see 2nd commit. |
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.
@jakesmith the csv change should be a different PR - especially switching output over to using it.
system/jlib/jlog.cpp
Outdated
@@ -879,7 +956,7 @@ void CategoryLogMsgFilter::reset() | |||
void HandleLogMsgHandlerTable::handleMessage(const LogMsg & msg) | |||
{ | |||
CriticalBlock block(crit); | |||
msg.toStringTable(curMsgText.clear(), messageFields); | |||
msg.toStringCSV(curMsgText.clear(), messageFields); |
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.
Did you mean to include this change? I can see it would be useful for simplifying post-processing, but it would need to be on an option.
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.
whoops, I did not.
@ghalliday rolled back unintentional jlog changes - see 3rd commit. |
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.
@jakesmith please squash
Enabled either globally (i.e. for all components), or for individual components (e.g. Thor). Usage: expert: alwaysPostMortem: true Signed-off-by: Jake Smith <[email protected]>
a8290db
to
df794a0
Compare
@ghalliday - squashed |
6f4d15e
into
hpcc-systems:candidate-9.2.x
Enabled either globally (i.e. for all components), or for individual components (e.g. Thor).
Usage:
Type of change:
Checklist:
Smoketest:
Testing: