You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HttpRemoteTaskRunner leaves a task killed mid-assignment pending if the assignment fails #20773
Follow-up to #20740. If TaskQueue kills a task while HttpRemoteTaskRunner is assigning it to a worker, and the assignment then fails, the task never launches but stays pending:
getPendingTasks() and getPendingTaskPayloads() still list it, so PendingTaskBasedWorkerProvisioningStrategy counts it as demand.
Its result future stays open.
This lasts until TaskQueue calls shutdown() again in the management pass after its next storage sync, 1 to 2 druid.indexer.queue.storageSyncRate periods (1 minute by default) later. That call completes the task as FAILED. The assignment fails this way only when the chosen worker drops out right after it is picked, so this is rare. HTTP errors don't cause it, because assignTask()returns true when unsure. If the assignment succeeds instead, the killed task runs on the worker until that same shutdown() call kills it.
The reason for this:
For a PENDING_WORKER_ASSIGN work item, shutdown() only removes it from pendingTaskIds, because the assigning thread owns the item.
Activity
akasakariko commentedon Nov 8, 2026
I'd like to work on this