aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject git commit: Avoid including Optional wrapper in in scheduler thrift response message.
Date Wed, 02 Apr 2014 06:31:40 GMT
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 <protochron@gmail.com>
Authored: Tue Apr 1 23:25:00 2014 -0700
Committer: Bill Farner <wfarner@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(""));
     }
   }
 


Mime
View raw message