Skip to content

Never reject execution of fetch tasks #29442

Closed
@jpountz

Description

The search threadpool needs to run two main kinds of tasks: query tasks and fetch tasks. We should consider force-adding fetch tasks to the queue even in the event that the queue is already full. The reasoning is that fetch tasks may only be follow-up to query tasks, so the number of additional fetch tasks that may enter the threadpool is expected to be reasonable.

We already have infrastructure for this with SizeBlockingQueue.forcePut and AbstractRunnable.isForceExecution, which we use for the can_match phase.

Metadata

Assignees

Labels

:Search/SearchSearch-related issues that do not fall into other categories>enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions