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

[Remote Store] Add support to separate segment infos snapshot from metadata #13114

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

Conversation

sachinpkale
Copy link
Member

@sachinpkale sachinpkale commented Apr 8, 2024

Description

Related Issues

Resolves #13129

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Contributor

github-actions bot commented Apr 8, 2024

❌ Gradle check result for 7052aca: 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?

Copy link
Contributor

github-actions bot commented Apr 8, 2024

Compatibility status:

Checks if related components are compatible with change d097388

Incompatible components

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/performance-analyzer.git]

Copy link
Contributor

github-actions bot commented Apr 8, 2024

✅ Gradle check result for a4cc193: SUCCESS

Copy link

codecov bot commented Apr 8, 2024

Codecov Report

Attention: Patch coverage is 44.18605% with 24 lines in your changes missing coverage. Please review.

Project coverage is 71.36%. Comparing base (b15cb0c) to head (a4cc193).
Report is 443 commits behind head on main.

Current head a4cc193 differs from pull request most recent head d097388

Please upload reports for the commit d097388 to get more accurate results.

Files Patch % Lines
...earch/index/store/RemoteSegmentStoreDirectory.java 41.66% 13 Missing and 1 partial ⚠️
...in/java/org/opensearch/index/shard/IndexShard.java 27.27% 6 Missing and 2 partials ⚠️
...va/org/opensearch/indices/RemoteStoreSettings.java 66.66% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #13114      +/-   ##
============================================
- Coverage     71.42%   71.36%   -0.06%     
- Complexity    59978    60453     +475     
============================================
  Files          4985     5026      +41     
  Lines        282275   284553    +2278     
  Branches      40946    41218     +272     
============================================
+ Hits         201603   203072    +1469     
- Misses        63999    64704     +705     
- Partials      16673    16777     +104     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot added enhancement Enhancement or improvement to existing feature or request Storage:Remote labels Apr 9, 2024
@sachinpkale sachinpkale force-pushed the separate-metadata-segment-infos branch from a9d1269 to 84557bc Compare April 9, 2024 04:33
Copy link
Contributor

github-actions bot commented Apr 9, 2024

❌ Gradle check result for 9cef8ae: 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?

Copy link
Contributor

github-actions bot commented Apr 9, 2024

❌ Gradle check result for a9d1269: 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?

Copy link
Contributor

github-actions bot commented Apr 9, 2024

❌ Gradle check result for 84557bc: 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?

Copy link
Contributor

github-actions bot commented Apr 9, 2024

❌ Gradle check result for d605254: 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?

Copy link
Contributor

❌ Gradle check result for a2cb249: 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?

@sachinpkale sachinpkale force-pushed the separate-metadata-segment-infos branch from a2cb249 to 65656af Compare April 12, 2024 09:48
Copy link
Contributor

❌ Gradle check result for 65656af: 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?

Copy link
Contributor

❌ Gradle check result for 40206cb: 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?

@sachinpkale sachinpkale force-pushed the separate-metadata-segment-infos branch from 40206cb to d097388 Compare April 16, 2024 10:14
@sachinpkale sachinpkale marked this pull request as ready for review April 16, 2024 10:14
Copy link
Contributor

❌ Gradle check result for d097388: 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?

@rramachand21
Copy link
Member

@sachinpkale can we please tag this to an opensearch release?

@linuxpi
Copy link
Collaborator

linuxpi commented May 2, 2024

[Storage Triage - attendees 1 2 3 4 5 6 7 8 9 10 11 12 13]

@sachinpkale Thanks for opening this PR. Lets resolve the conflicts and update the new release target label

Comment on lines +146 to +147
if (randomBoolean()) {
settingsBuilder.put(RemoteStoreSettings.CLUSTER_REMOTE_SEGMENT_SEPARATE_METADATA_SEGMENTINFOS_SETTING.getKey(), true);
Copy link
Contributor

Choose a reason for hiding this comment

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

@sachinpkale just confirming this segment infos snapshot is different than segments_N file which gets created at the commit time. this is the one which have latest segment info at the time of refresh?

@Bukhtawar Bukhtawar added v2.15.0 Issues and PRs related to version 2.15.0 and removed v2.14.0 labels May 16, 2024
@opensearch-trigger-bot
Copy link
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added stalled Issues that have stalled and removed stalled Issues that have stalled labels Jun 18, 2024
@opensearch-trigger-bot
Copy link
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request stalled Issues that have stalled Storage:Remote v2.15.0 Issues and PRs related to version 2.15.0
Projects
Status: Now(This Quarter)
Development

Successfully merging this pull request may close these issues.

[Feature Request] Add support to separate segment infos snapshot from remote segment metadata
6 participants