Split shrink clone serverless internal usage#144873
Merged
kingherc merged 14 commits intoelastic:mainfrom Apr 7, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the REST resize endpoints (shrink/split/clone) to be available in serverless mode for internal (operator) requests, aligning with ES-14033.
Changes:
- Adds
@ServerlessScope(Scope.INTERNAL)to the shrink, split, and clone REST handlers. - Imports
ScopeandServerlessScopeto support the new annotations.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6675458 to
dcdc2c6
Compare
Relates ES-14033
dcdc2c6 to
44fb9f0
Compare
Collaborator
|
Pinging @elastic/es-distributed (Team:Distributed) |
masseyke
approved these changes
Mar 25, 2026
yungene
approved these changes
Mar 30, 2026
lkts
approved these changes
Mar 30, 2026
mromaios
pushed a commit
to mromaios/elasticsearch
that referenced
this pull request
Apr 9, 2026
Split shrink clone serverless internal usage Relates ES-14033
bpintea
pushed a commit
to bpintea/elasticsearch
that referenced
this pull request
Apr 29, 2026
…rverless#5999) We handle the LOCAL_SHARDS recovery in stateless mode by treating resize target indices as having no pre-existing blob container, allowing the standard recovery-then-upload flow to create the initial BCC in the object store, similar to how it happens for an empty store recovery or a snapshot restore. Depends on core ES PR elastic#144873 which makes the APIs available in Serverless in internal/operator mode. This is not necessary, but the APIs are operationable now so may be useful in our arsenal. If we decide against it, we can undo that. With the side-effect of having to skip the included YAML tests in this PR until we move the code to the public repos. Also ensures that resharding does not happen concurrently with resizing. Closes ES-14033
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reject if resharding is underway.
Relates ES-14033