opensearch-project / opensearch-project/OpenSearch

Skip metadata upload if no new segment files to upload during refresh for remote store clusters

Open
#17,530 10 comments 0 reactions 1 assignee View on GitHub

@kaushik95 is already working on this.

Since Mar 18, 2025.

enhancement good first issue Storage:Remote
Dominant language
Java
Stars
13.7k
Forks
3k
Avg merge
2d 23h
Merged PRs (30d)
108

Description

Is your feature request related to a problem? Please describe

In the refresh flow of remote store indexes, we determine the files to be uploaded, upload them and then upload the associated metadata. This, however, uploads the metadata even when there is no new files to upload. This can be optimised and metadata upload can be skipped for such cases.

https://github.com/opensearch-project/OpenSearch/blob/3966ed93beb2ff13854d2a6e1ff51dfa32295830/server/src/main/java/org/opensearch/index/shard/RemoteStoreRefreshListener.java#L266C21-L292

Describe the solution you'd like

Optimise the segments upload flow to skip metadata upload when there are no newer segment files.

Related component

No response

Describe alternatives you've considered

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.