apache / apache/lucene

Inconsistent search results in different threads but same query [LUCENE-5566]

Open
#6,628 0 comments 0 reactions 0 assignees View on GitHub
affects-version:3.6 legacy-jira-priority:Major module:core/search type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

We have a very difficult case to identify whats going on.
We have a multithreaded environment where multiple threads are trying to hit the same lucene query and getting different results each time.
For eg: Query A has returned 1 result which is running in thread 1
And same Query A is returning 0 results which is running in thread 2.

All the indexes looks fine and if we take the same query and try it in Luke and we are able to get the correct results which is 1 in this case. And we are not able to reproduce it in local environments or staging or integration but only on Production.

Trying to figure out whats going on.

---
Migrated from [LUCENE-5566](https://issues.apache.org/jira/browse/LUCENE-5566) by Pradeep K Poluri

Contributor guide

Open the contributing guide

Research direction

Start by comparing the multithreaded production execution described in the issue with running the same query in Luke, where the expected result is returned. Investigate why identical queries can produce different results across threads and determine what additional production conditions or diagnostics are needed; done means the cause is identified and a reproducible fix or clear explanation is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.