Repository navigation
Improve leader leasing error return info - #7918
Conversation
|
Nm, this is not for 1.2 |
ac0b037 to
5eb4232
Compare
|
@deads2k not high priority but want to improve debug output in case we hit issues. |
| else | ||
| os::text::print_red "failed $1" | ||
| echo "${out}" | ||
| echo "${out:-}" |
There was a problem hiding this comment.
If verbose is on, out is undefined. This ignores the undefined bash var.
|
Didn't upstream build some sort of a lease resource? |
| go l.leaser.AcquireAndHold(ch) | ||
| defer l.Stop() | ||
| var err error | ||
| defer l.Stop(err) |
There was a problem hiding this comment.
defer's function args are evaluated when we get to this line, not at the end of the function right? Wouldn't this mean that err is always nil?
There was a problem hiding this comment.
|
Yeah but not sure when to switch to it. I want to clean this up a bit On Apr 27, 2016, at 7:56 AM, David Eads [email protected] wrote: Didn't upstream build some sort of a lease resource? — |
|
lgtm |
|
@smarterclayton Bump |
When we lose the lease, return an error all the way up the stack so that specific error messages can be logged.
Bigger window for lease renewal.
5eb4232 to
c0bca94
Compare
Detected while running this.
|
[merge] |
1 similar comment
|
[merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4939/) (Image: devenv-rhel7_4384) |
|
[merge] |
|
Evaluated for origin merge up to c0bca94 |
Print more information at the appropriate spot when we lose a lease.
Start trying to renew the lease 2/3 of the way through the interval, rather than 1/4.
Fix some minor issues with logging.
@deads2k I think I caught all of the issues resulting from adding a buffered channel, but the code is more complex now. We only truly need the lease renewal change for 1.2, but this was a good opportunity to refresh my familiarity with the code and double check the conditions.