浏览代码

Do not pass executor shutdown to super constructor

The main constructor for rejected execution exception its executor
shutdown constructor parameter to the super constructor where it would
be used as a formatting parameter. This is a mistake so this commit
fixes this issue.
Jason Tedor 8 年之前
父节点
当前提交
144e1698cf

+ 1 - 1
core/src/main/java/org/elasticsearch/common/util/concurrent/EsRejectedExecutionException.java

@@ -31,7 +31,7 @@ public class EsRejectedExecutionException extends ElasticsearchException {
     private final boolean isExecutorShutdown;
     private final boolean isExecutorShutdown;
 
 
     public EsRejectedExecutionException(String message, boolean isExecutorShutdown) {
     public EsRejectedExecutionException(String message, boolean isExecutorShutdown) {
-        super(message, isExecutorShutdown);
+        super(message);
         this.isExecutorShutdown = isExecutorShutdown;
         this.isExecutorShutdown = isExecutorShutdown;
     }
     }