dlmarion commented on code in PR #4212:
URL: https://github.com/apache/accumulo/pull/4212#discussion_r1474457335


##########
core/src/main/java/org/apache/accumulo/core/spi/compaction/DefaultCompactionPlanner.java:
##########
@@ -167,6 +167,12 @@ public String toString() {
       justification = "Field is written by Gson")
   @Override
   public void init(InitParameters params) {
+
+    if (params.getOptions().containsKey("executors")
+        && params.getOptions().get("executors").isBlank()) {
+      throw new IllegalStateException("No defined executors for this planner");
+    }
+

Review Comment:
   What happens in the next statement if `params.getOptions()` does not contain 
`executors`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to