-
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-32890 Add cleanjobqueues to daliadmin #19242
HPCC-32890 Add cleanjobqueues to daliadmin #19242
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-32890 Jirabot Action Result: |
dali/daliadmin/daadmin.cpp
Outdated
{ | ||
IPropertyTree &queue = queueIter->query(); | ||
const char *name = queue.queryProp("@name"); | ||
if (isEmptyString(name)) // should be blank, but guard |
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.
comment: should not be blank ?
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.
fixed
dali/daliadmin/daadmin.cpp
Outdated
for (auto &client: toRemove) | ||
queue.removeTree(client); | ||
} | ||
PROGLOG("%s %u stale client entries", dryRun ? "Dryrun, there are" : "Removed", (unsigned)toRemove.size()); |
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.
minor: would it be useful to show the queue name too?
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.
yeah, changed.
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.
Minor: a code comment needs to be changed.
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.
Minor: a code comment needs to fixed.
@shamser - please see 2nd commit. |
a38acd1
to
6d0479b
Compare
cleanjobqueues scans all /JobQueues and the Clients within them, and deletes any which are not in use (connected==0). NB: this should only be necessary on old (pre 9.4 systems). (see HPCC-31807 in 9.4+) Signed-off-by: Jake Smith <[email protected]>
6d0479b
to
c44c522
Compare
Jirabot Action Result: |
cleanjobqueues scans all /JobQueues and the Clients within them, and deletes any which are not in use (connected==0).
NB: this should only be necessary on old (pre 9.4 systems). (see HPCC-31807 in 9.4+)
Type of change:
Checklist:
Smoketest:
Testing: