elasticsearch/server
Parker Timmins fd8f00439a
Use new source loader when lower docId is accessed (#128320) (#128409)
When using synthetic source, runtime fields data may come from doc values. Doc values iterators can only be read once, and in increasing docId order. But if a runtime field is referenced multiple times in a query, currently the same doc value iterator will be used. This causes an error, as the second field reference will attempt to read the same iterator from a lower docId than was previously used. The fix is to create a new source loader, and thus a new doc value iterator, if the requested docId is lower than the last seen docId.

(cherry picked from commit 51e87cb744)

# Conflicts:
#	server/src/main/java/org/elasticsearch/search/lookup/ConcurrentSegmentSourceProvider.java
2025-05-27 09:46:02 -05:00
..
licenses Remove JNA from server dependencies (#110809) 2024-07-12 19:49:13 -07:00
src Use new source loader when lower docId is accessed (#128320) (#128409) 2025-05-27 09:46:02 -05:00
build.gradle [9.0] Bug Fix: System Data Streams Should Be Restorable (#124651) (#124910) 2025-03-15 09:13:19 +11:00