Skip to content
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

Allow executing multiple periodic flushes while they are being made durable #102571

Merged
merged 12 commits into from Nov 27, 2023

Conversation

fcofdez
Copy link
Contributor

@fcofdez fcofdez commented Nov 24, 2023

Relates ES-7200

@fcofdez fcofdez added >enhancement :Distributed/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. Team:Distributed Meta label for distributed team v8.12.0 labels Nov 24, 2023
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @fcofdez, I've created a changelog YAML for you.

Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM.

* Executes the given flush request against the engine.
*
* @param request the flush request
* @param listener to notify after fully durability has been achieved.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

Suggested change
* @param listener to notify after fully durability has been achieved.
* @param listener to notify after full durability has been achieved.

}
});
afterWriteOperation();
flushOrRollRunning.compareAndSet(true, false);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we have to still reset before calling the method back, since otherwise it will always bail out early on the re-invocation?

@fcofdez fcofdez merged commit 000ffaa into elastic:main Nov 27, 2023
14 checks passed
timgrein pushed a commit to timgrein/elasticsearch that referenced this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. >enhancement Team:Distributed Meta label for distributed team v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants