Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Stop recording update-status runs. #8132
+392
−2
Conversation
jameinel
approved these changes
Nov 27, 2017
One small tweak. The general behavior of omitting duplicates and then not going into Executing seems ok to me.
| + dataSame(current.StatusData, doc.StatusData) { | ||
| + return | ||
| + } | ||
| + } |
jameinel
Nov 27, 2017
Owner
should we have an
} else if !mgo.NotFound(err) {
return err
}
I'm concerned that some other types of errors like "mongo died" would get swallowed here.
|
$$merge$$ |
|
Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju |
jujubot
merged commit e4f81c1
into
juju:develop
Nov 27, 2017
1 check failed
continuous-integration/jenkins/pr-merge
This commit cannot be built
Details
howbazaar
deleted the
howbazaar:skip-update-status-recording
branch
Nov 27, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
howbazaar commentedNov 27, 2017
The key purpose of the show-status-history command is to show historical events for a unit.
For any long running model, most units just show 'running update-status hook' followed by 'idle'. This isn't overly useful. So, now we don't record the 'running update-status hook' when the uniter runs it. The logging is still there, so it shows the hook running. When there is an error, this is still shown to the user.
For the workload status, if this value doesn't change, new history entries are no longer added. The current workload status is updated to reflect the timestamp change, but this history isn't added.
QA steps
During the testing for this branch, I found that show-status-history itself is a little broken in its display logic, so can check the database for the history values:
Documentation changes
We should document that the update-status hook is no longer shown in juju status or the status history for a unit.
Bug reference
https://bugs.launchpad.net/juju/+bug/1530840