Skip to content

Conversation

@parkertimmins
Copy link
Contributor

@parkertimmins parkertimmins commented Nov 25, 2025

By decompressing all matching blocks into one byte array and appending that directly into the block builder.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@elasticsearchmachine
Copy link
Collaborator

Hi @parkertimmins, I've created a changelog YAML for you.

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

LGTM 👍

int blockDocOffset = 0;
int blockByteOffset = 0;
long[] offsets = new long[count + 1];
List<BytesRef> decompressedBlocks = new ArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a TODO, to account memory usage of decompressedBlocks? This could grow and have a significant jvm heap memory usage.

Eventually this will be accounted, but that happens when we hand over byte[] to the builder.

@martijnvg
Copy link
Member

I suspect most of the bwc failures are because of:

Caused by: java.lang.IllegalStateException: Node Sb8dLoCzTniI51zwITrA7A is missing required features [semantic_text.highlighter.vector_similarity_support]

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

LGTM2

@martijnvg martijnvg enabled auto-merge (squash) November 27, 2025 09:18
@martijnvg martijnvg merged commit 65426e8 into elastic:main Nov 27, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants