You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by wf...@apache.org on 2014/04/02 08:31:40 UTC
git commit: Avoid including Optional wrapper in in scheduler thrift
response message.
Repository: incubator-aurora
Updated Branches:
refs/heads/master 17a76806f -> 85ae33ba3
Avoid including Optional wrapper in in scheduler thrift response message.
Bugs closed: AURORA-249
Reviewed at https://reviews.apache.org/r/19900/
Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/85ae33ba
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/85ae33ba
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/85ae33ba
Branch: refs/heads/master
Commit: 85ae33ba30f0239913e3b9b7ca29c250193a7098
Parents: 17a7680
Author: Dan Norris <pr...@gmail.com>
Authored: Tue Apr 1 23:25:00 2014 -0700
Committer: Bill Farner <wf...@apache.org>
Committed: Tue Apr 1 23:25:00 2014 -0700
----------------------------------------------------------------------
.../java/org/apache/aurora/scheduler/state/SchedulerCoreImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/85ae33ba/src/main/java/org/apache/aurora/scheduler/state/SchedulerCoreImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/aurora/scheduler/state/SchedulerCoreImpl.java b/src/main/java/org/apache/aurora/scheduler/state/SchedulerCoreImpl.java
index 9ebfd94..2f68000 100644
--- a/src/main/java/org/apache/aurora/scheduler/state/SchedulerCoreImpl.java
+++ b/src/main/java/org/apache/aurora/scheduler/state/SchedulerCoreImpl.java
@@ -171,7 +171,7 @@ class SchedulerCoreImpl implements SchedulerCore {
QuotaCheckResult quotaCheck = quotaManager.checkQuota(task, instances);
if (quotaCheck.getResult() == INSUFFICIENT_QUOTA) {
- throw new ScheduleException("Insufficient resource quota: " + quotaCheck.getDetails());
+ throw new ScheduleException("Insufficient resource quota: " + quotaCheck.getDetails().or(""));
}
}