kfaraz commented on code in PR #18020:
URL: https://github.com/apache/druid/pull/18020#discussion_r2097287296


##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/TaskQueue.java:
##########
@@ -531,6 +531,8 @@ public boolean add(final Task task)
       // insert the task into our queue. So don't catch it.
       final DateTime insertTime = DateTimes.nowUtc();
       taskStorage.insert(task, TaskStatus.running(task.getId()));
+      // Note: the TaskEntry created for this task doesn't actually use the 
`insertTime` timestamp, it uses a new
+      // timestamp created in the ctor. This prevents races from occurring 
while syncFromStorage() is happening.

Review Comment:
   Edit: Let's hold off on it. This build is green, let's just merge this one 
off first.



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