AmatyaAvadhanula commented on code in PR #14407:
URL: https://github.com/apache/druid/pull/14407#discussion_r1282708656
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/task/AbstractBatchIndexTask.java:
##########
@@ -430,7 +429,8 @@ protected boolean tryTimeChunkLock(TaskActionClient client,
List<Interval> inter
}
prev = cur;
- final TaskLock lock = client.submit(new
TimeChunkLockTryAcquireAction(TaskLockType.EXCLUSIVE, cur));
+ final TaskLockType taskLockType =
TaskLockType.valueOf(getContextValue(Tasks.TASK_LOCK_TYPE,
TaskLockType.EXCLUSIVE.name()));
Review Comment:
Fixed
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/task/AbstractBatchIndexTask.java:
##########
@@ -430,7 +429,8 @@ protected boolean tryTimeChunkLock(TaskActionClient client,
List<Interval> inter
}
prev = cur;
- final TaskLock lock = client.submit(new
TimeChunkLockTryAcquireAction(TaskLockType.EXCLUSIVE, cur));
+ final TaskLockType taskLockType =
TaskLockType.valueOf(getContextValue(Tasks.TASK_LOCK_TYPE,
TaskLockType.EXCLUSIVE.name()));
Review Comment:
Fixed
--
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]