maytasm commented on a change in pull request #9892:
URL: https://github.com/apache/druid/pull/9892#discussion_r427717217



##########
File path: 
indexing-service/src/main/java/org/apache/druid/indexing/common/task/TaskResource.java
##########
@@ -37,6 +37,7 @@ public TaskResource(
   )
   {
     this.availabilityGroup = Preconditions.checkNotNull(availabilityGroup, 
"availabilityGroup");
+    Preconditions.checkArgument(requiredCapacity > 0);

Review comment:
       I saw both being use too. Personally, I do not have any strong 
preference. This was the first thing that came to mind.




----------------------------------------------------------------
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to