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

Remove commit information from refresh result #94259

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Tim-Brooks
Copy link
Contributor

@Tim-Brooks Tim-Brooks commented Mar 2, 2023

We recently made a change where the refresh result includes information about the current commit. However, this result is tightly tied to the concept of a flush. The refresh method in internal engine does not perform commits or flushes, so this result can be misleading to consumers. This commit just reads the flush generation from the commit stats.

We recently made a change where the refresh result includes information
about the current commit. However, this result is tightly tied to the
concept of a flush. The refresh method in internal engine does not
perform commits or flushes, so this result can be misleading to
consumers. This commit extracts a separate method that will perform both
a flush and a refresh and then returns the approriate generation.
@Tim-Brooks Tim-Brooks added >non-issue :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. v8.8.0 labels Mar 2, 2023
@Tim-Brooks Tim-Brooks requested review from tlrx and pxsalehi March 2, 2023 00:14
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team label Mar 2, 2023
@elasticsearchmachine
Copy link
Collaborator

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

@Tim-Brooks
Copy link
Contributor Author

I ended up adjusting this just to read the commit stats after performing the refresh (and flush for index engine). I still feel like this is worth considering as I continue to prefer not tie the flush generation to the refresh result since they are not really related. Although if there are objections, we can discuss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Engine Anything around managing Lucene and the Translog in an open shard. >non-issue Team:Distributed Meta label for distributed team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants