-
Notifications
You must be signed in to change notification settings - Fork 364
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 calculation of available job capacity returned in HealthIndicator #503
Conversation
Please pull this against 3.0.x branch to target 3.0.6 release and then cherry pick into master after that. |
Closing for the moment. |
@@ -84,8 +84,8 @@ public Health health() { | |||
.withDetail(NUMBER_RUNNING_JOBS_KEY, this.jobMetricsService.getNumActiveJobs()) | |||
.withDetail(USED_MEMORY_KEY, usedMemory) | |||
.withDetail(AVAILABLE_MEMORY, availableMemory) | |||
.withDetail(AVAILABLE_DEFAULT_JOB_CAPACITY, availableMemory % defaultJobMemory) | |||
.withDetail(AVAILABLE_MAX_JOB_CAPACITY, availableMemory % maxJobMemory) | |||
.withDetail(AVAILABLE_DEFAULT_JOB_CAPACITY, availableMemory / defaultJobMemory) |
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.
Decided not to check divide by zero 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.
Argh, cherry-picked the wrong version of this commit somehow..
Don't merge please.
I just reopened this PR which still had the original change i made on master (i.e., no div by zero). |
No description provided.