-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Modify the mechanism to pause indexing #128405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The problem with the original implementation of the pause lock mechanism was as follows:
This is because the semaphore based approach relies on acquiring and releasing precise number of permits during activate and deactivate, which is not possible to synchronize. Let me try to explain with the the following scenario: |
…eLock Refresh branch
Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing) |
Hi @ankikuma, I've created a changelog YAML for you. |
…csearch into 05232025/ModifyPauseLock Pull
This PR changes the mechanism to pause indexing which was introduced in #127173.
The original PR caused
IndexStatsIT#testThrottleStats
to fail. See #126359.