-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Created an API to fetch remote store metadata #18257
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?
Created an API to fetch remote store metadata #18257
Conversation
❌ Gradle check result for 2e31b7f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for c3433c6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
c3433c6
to
73c9694
Compare
❌ Gradle check result for 73c9694: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for f706bd0: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
f706bd0
to
f368d9e
Compare
❌ Gradle check result for f368d9e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
...ava/org/opensearch/action/admin/cluster/remotestore/metadata/RemoteStoreMetadataRequest.java
Outdated
Show resolved
Hide resolved
...ava/org/opensearch/action/admin/cluster/remotestore/metadata/RemoteStoreMetadataRequest.java
Outdated
Show resolved
Hide resolved
...ava/org/opensearch/action/admin/cluster/remotestore/metadata/RemoteStoreMetadataRequest.java
Outdated
Show resolved
Hide resolved
.../opensearch/action/admin/cluster/remotestore/metadata/RemoteStoreMetadataRequestBuilder.java
Outdated
Show resolved
Hide resolved
...va/org/opensearch/action/admin/cluster/remotestore/metadata/RemoteStoreMetadataResponse.java
Show resolved
Hide resolved
...opensearch/action/admin/cluster/remotestore/metadata/TransportRemoteStoreMetadataAction.java
Outdated
Show resolved
Hide resolved
...opensearch/action/admin/cluster/remotestore/metadata/TransportRemoteStoreMetadataAction.java
Outdated
Show resolved
Hide resolved
...opensearch/action/admin/cluster/remotestore/metadata/TransportRemoteStoreMetadataAction.java
Outdated
Show resolved
Hide resolved
...opensearch/action/admin/cluster/remotestore/metadata/TransportRemoteStoreMetadataAction.java
Outdated
Show resolved
Hide resolved
196da8f
to
c1e02e2
Compare
❌ Gradle check result for c1e02e2: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for c013578: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
...opensearch/action/admin/cluster/remotestore/metadata/TransportRemoteStoreMetadataAction.java
Show resolved
Hide resolved
...opensearch/action/admin/cluster/remotestore/metadata/TransportRemoteStoreMetadataAction.java
Outdated
Show resolved
Hide resolved
...opensearch/action/admin/cluster/remotestore/metadata/TransportRemoteStoreMetadataAction.java
Outdated
Show resolved
Hide resolved
...opensearch/action/admin/cluster/remotestore/metadata/TransportRemoteStoreMetadataAction.java
Outdated
Show resolved
Hide resolved
c013578
to
2a61841
Compare
❌ Gradle check result for 2a61841: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
2a61841
to
77e4f53
Compare
❌ Gradle check result for 432cc70: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
432cc70
to
b3ed29d
Compare
❌ Gradle check result for b3ed29d: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
...opensearch/action/admin/cluster/remotestore/metadata/TransportRemoteStoreMetadataAction.java
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/remotestore/RemoteStoreMetadataIT.java
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/remotestore/RemoteStoreMetadataIT.java
Outdated
Show resolved
Hide resolved
...opensearch/action/admin/cluster/remotestore/metadata/TransportRemoteStoreMetadataAction.java
Show resolved
Hide resolved
...opensearch/action/admin/cluster/remotestore/metadata/TransportRemoteStoreMetadataAction.java
Show resolved
Hide resolved
b3ed29d
to
1476131
Compare
❌ Gradle check result for 1476131: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
1476131
to
d92ef51
Compare
❌ Gradle check result for d92ef51: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for d92ef51: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18257 +/- ##
============================================
+ Coverage 72.44% 72.60% +0.16%
- Complexity 67256 67475 +219
============================================
Files 5488 5495 +7
Lines 310994 311206 +212
Branches 45212 45231 +19
============================================
+ Hits 225288 225940 +652
+ Misses 67297 66892 -405
+ Partials 18409 18374 -35 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d92ef51
to
4b55b62
Compare
❌ Gradle check result for 4b55b62: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: sukriti sinha <[email protected]>
4b55b62
to
722d6dd
Compare
❌ Gradle check result for 722d6dd: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 722d6dd: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❕ Gradle check result for 722d6dd: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Added Remote Store Metadata API to fetch segment and translog metadata
Description
This PR adds a new cluster-level API that enables users to retrieve remote store metadata, including segment and translog details, for specific indices and shards. This functionality enhances observability and debugging capabilities for indices backed by remote storage.
Key Changes
TransportRemoteStoreMetadataAction
:RemoteStoreMetadataRequest
: Supports input parameters: index name and optional shard ID(s).RemoteStoreMetadataResponse
: Contains per-shard metadata along with success/failure infoRemoteStoreMetadata
: Holds the parsed segment and translog metadata per shard.RemoteStoreMetadataAction
: Registers the action undercluster:admin/remote_store/metadata
.RemoteStoreMetadataRequestBuilder
: Provides fluent client-side request building.RestRemoteStoreMetadataAction
GET /_remotestore/metadata/{index}
GET /_remotestore/metadata/{index}/{shard_id}
- Supports optional query param: ?local=trueClusterAdminClient
andAbstractClient
:remoteStoreMetadata(RemoteStoreMetadataRequest, ActionListener)
prepareRemoteStoreMetadata(String index, String shardId)
Sample Response
GET "localhost:9200/_remotestore/metadata/my-index-1?pretty"