Skip to content

Split shrink clone serverless internal usage#144873

Merged
kingherc merged 14 commits intoelastic:mainfrom
kingherc:non-issue/ES-14033-split-stateless
Apr 7, 2026
Merged

Split shrink clone serverless internal usage#144873
kingherc merged 14 commits intoelastic:mainfrom
kingherc:non-issue/ES-14033-split-stateless

Conversation

@kingherc
Copy link
Copy Markdown
Contributor

@kingherc kingherc commented Mar 24, 2026

Reject if resharding is underway.

Relates ES-14033

@kingherc kingherc self-assigned this Mar 24, 2026
@kingherc kingherc added >non-issue :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. Team:Distributed Meta label for distributed team. v9.4.0 labels Mar 24, 2026
@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Mar 24, 2026
@kingherc kingherc requested a review from Copilot March 24, 2026 17:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 Scope and ServerlessScope to support the new annotations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kingherc kingherc force-pushed the non-issue/ES-14033-split-stateless branch from 6675458 to dcdc2c6 Compare March 24, 2026 17:22
@kingherc kingherc force-pushed the non-issue/ES-14033-split-stateless branch from dcdc2c6 to 44fb9f0 Compare March 25, 2026 06:53
@kingherc kingherc marked this pull request as ready for review March 25, 2026 08:22
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@kingherc kingherc requested review from masseyke, mosche and yungene March 25, 2026 08:23
@kingherc kingherc requested a review from lkts March 30, 2026 16:10
@kingherc kingherc merged commit 9798341 into elastic:main Apr 7, 2026
35 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. >non-issue serverless-linked Added by automation, don't add manually Team:Distributed Meta label for distributed team. v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants