himanshug commented on a change in pull request #8697: HRTR: make pending task
execution handling to go through all tasks on not finding worker slots
URL: https://github.com/apache/incubator-druid/pull/8697#discussion_r356800295
##########
File path:
indexing-service/src/main/java/org/apache/druid/indexing/overlord/hrtr/HttpRemoteTaskRunner.java
##########
@@ -1432,15 +1533,35 @@ void taskAddedOrUpdated(final TaskAnnouncement
announcement, final WorkerHolder
{
enum State
{
- PENDING(0),
- RUNNING(1),
- COMPLETE(2);
+ // Task has been given to HRTR, but a worker to run this task hasn't
been identified yet.
+ PENDING(0, true, RunnerTaskState.PENDING),
+
+ // A Worker has been identified to run this task, but request to run
task hasn't been made to worker yet
+ // or worker hasn't acknowledged the task yet.
+ PENDING_WORKER_ASSIGN(1, true, RunnerTaskState.PENDING),
- int index;
+ RUNNING(2, false, RunnerTaskState.RUNNING),
+ COMPLETE(3, false, RunnerTaskState.NONE);
- State(int index)
+ private int index;
+ private boolean isPending;
+ private RunnerTaskState runnerTaskState;
Review comment:
changed, for some reason I thought enum state was immutable without even
explicitly doing so.. duh
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]