Skip to content

Comments

Cleaning up exitable vector value impls#140190

Merged
elasticsearchmachine merged 4 commits intoelastic:mainfrom
benwtrent:cleanup-exitable-vector-values
Jan 6, 2026
Merged

Cleaning up exitable vector value impls#140190
elasticsearchmachine merged 4 commits intoelastic:mainfrom
benwtrent:cleanup-exitable-vector-values

Conversation

@benwtrent
Copy link
Member

Need to run CI, but this cleans up our exitable directory impls by extracting out the vector values and providing FilterFloat/ByteVectorValues. I think these could be use elsewhere in the code base, but just doing this initial refactor for now.

Also, I noticed that the copy wasn't actually copying the query cancellation logic here 🤦 . Which is likely a latent bug in cancellation we haven't really found yet.

@elasticsearchmachine elasticsearchmachine added Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.4.0 labels Jan 5, 2026
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

public FloatVectorValues copy() throws IOException {
return in.copy();
assert in instanceof BulkScorableFloatVectorValues;
FloatVectorValues copy = this.in;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't actually calling copy...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DANNGIT

@benwtrent benwtrent added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jan 6, 2026
@elasticsearchmachine elasticsearchmachine merged commit 278f1d0 into elastic:main Jan 6, 2026
35 checks passed
@benwtrent benwtrent deleted the cleanup-exitable-vector-values branch January 6, 2026 18:50
szybia added a commit to szybia/elasticsearch that referenced this pull request Jan 7, 2026
* upstream/main: (191 commits)
  Overall Decision for Deciders prioritizes THROTTLE (elastic#140237)
  Apply group by all logic not only to top-level aggregates (elastic#140248)
  [ES|QL] Refactor MV_UNION and MV_INTERSECTION to use shared set operation helper (elastic#139982)
  Avoid reading entire bloom filter file on reader open (elastic#139374)
  Mark bloom filter files for random access (elastic#139375)
  Ensure that the buffer used for ES93BloomFilterStoredFieldsFormat is zeroed (elastic#139034)
  Add busy assertion to avoid race condition for testStalledShardMigrationProperlyDetected (elastic#140230)
  Remove line number check for testTransitiveFindsDeepCallChain (elastic#140228)
  Allow a slight difference in rescored docs (elastic#139931)
  Mute org.elasticsearch.xpack.inference.integration.AuthorizationTaskExecutorIT testCreatesEisChatCompletion_DoesNotRemoveEndpointWhenNoLongerAuthorized elastic#138480
  Start exchange sink fetchers concurrently (elastic#140196)
  Allow allocation to replacement target node on vacate completion (elastic#140150)
  Ignore JNA cleaner threads in SecureHdfsRepositoryAnalysisRestIT (elastic#139925)
  DeterministicQueue refactor and enhancement (elastic#140151)
  Always error out if CCS expression shows up when CCS is not supported (elastic#139009)
  Use IllegalArgumentException over RepositoryException for readonly-repository checks (elastic#140200)
  Guard promql capabilities in AnalyzerTests (elastic#140232)
  [Inference API] Fix flaky AuthorizationTaskExecutorIT tests (elastic#139978)
  Cleaning up exitable vector value impls (elastic#140190)
  [Inference API] Fix auth exception listener not called bug (elastic#139966)
  ...
sidosera pushed a commit to sidosera/elasticsearch that referenced this pull request Jan 7, 2026
Need to run CI, but this cleans up our exitable directory impls by
extracting out the vector values and providing
`FilterFloat/ByteVectorValues`. I think these could be use elsewhere in
the code base, but just doing this initial refactor for now.

Also, I noticed that the copy wasn't actually copying the query
cancellation logic here 🤦 . Which is likely a latent bug in
cancellation we haven't really found yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >refactoring :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants