Skip to content

Conversation

lkts
Copy link
Contributor

@lkts lkts commented Sep 5, 2025

This PR relaxes the restriction on there only ever being one DirectoryReader wrapper per index and adds a possibility to apply multiple layers of wrappers. Currently only two are expected but the code does not enforce this.

This is needed for the ongoing autosharding project work.

@elasticsearchmachine elasticsearchmachine added serverless-linked Added by automation, don't add manually v9.2.0 labels Sep 5, 2025
* The factory ({@link Function}) is called once the IndexService is fully constructed.
* NOTE: this method can only be called once per index. Multiple wrappers are not supported.
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know whether there was any reason beyond "not implemented yet" why there might have been a restriction on more than a single wrapper? I ask because the implementation is so small it doesn't seem like it would necessarily have been an impediment on its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
serverless-linked Added by automation, don't add manually v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants