Skip to content

Conversation

@jxie-1
Copy link
Contributor

@jxie-1 jxie-1 commented Sep 5, 2025

Adds an assert as suggested in https://github.com/elastic/elasticsearch-serverless/pull/4461

The last source shard to complete will remove reshard metadata, so there should always be at least one source shard not done

@jxie-1 jxie-1 added >non-issue :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. Team:Distributed Indexing Meta label for Distributed Indexing team labels Sep 5, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@jxie-1
Copy link
Contributor Author

jxie-1 commented Sep 5, 2025

@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Sep 5, 2025
@jxie-1
Copy link
Contributor Author

jxie-1 commented Sep 9, 2025

Actually some unit tests are failing, do we want to change this?

@lkts
Copy link
Contributor

lkts commented Sep 10, 2025

Actually some unit tests are failing, do we want to change this?

I think it's fairly easy to adjust that test to take into account the invariant we've introduced.

@jxie-1 jxie-1 merged commit 53bfd22 into elastic:main Sep 15, 2025
34 checks passed
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Sep 17, 2025
elastic#134229)

* Assert in IndexReshardingState.Split ctor that source shards are not all done

* Fix reshard unit tests

* Remove reshard state inProgress method
gmjehovich pushed a commit to gmjehovich/elasticsearch that referenced this pull request Sep 18, 2025
elastic#134229)

* Assert in IndexReshardingState.Split ctor that source shards are not all done

* Fix reshard unit tests

* Remove reshard state inProgress method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants