Ver Fonte

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 há 8 anos atrás
pai
commit
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;
 
     public EsRejectedExecutionException(String message, boolean isExecutorShutdown) {
-        super(message, isExecutorShutdown);
+        super(message);
         this.isExecutorShutdown = isExecutorShutdown;
     }