apache / apache/lucene

stop all slices once any slice hits timeout in concurrent search

Open
#16,112 2 comments 0 reactions 0 assignees View on GitHub
type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

In concurrent search with timeout in IndexSearcher, when a timeout happens, one slice hits it but still continues processing remaining leaves and keeps failing repeatedly.

Other slices also continue running until they hit the timeout on their own.

This leads to some unnecessary extra work after the timeout.

Would it make sense to stop all slices immediately once any one slice hits the timeout?

Contributor guide

Open the contributing guide

Research direction

Start at IndexSearcher’s concurrent search timeout path and trace how one timed-out slice and the other slices continue processing. Confirm the intended cancellation behavior, then verify that all slices stop after the first timeout without repeated failures or unnecessary extra work.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.