jon-wei commented on a change in pull request #12052:
URL: https://github.com/apache/druid/pull/12052#discussion_r768126558



##########
File path: 
indexing-service/src/main/java/org/apache/druid/indexing/common/task/AbstractBatchIndexTask.java
##########
@@ -413,6 +420,10 @@ protected boolean tryTimeChunkLock(TaskActionClient 
client, List<Interval> inter
       if (lock.isRevoked()) {
         throw new ISE(StringUtils.format("Lock for interval [%s] was 
revoked.", cur));
       }
+      locksAcquired++;
+      if (maxAllowedLockCount >= 0 && locksAcquired > maxAllowedLockCount) {

Review comment:
       I was originally thinking to prioritize checking for lock revocation, 
but I moved it and made the check `>=`




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



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

Reply via email to