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

Make remote translog store path consistent to remote segment store #7947

Conversation

linuxpi
Copy link
Collaborator

@linuxpi linuxpi commented Jun 7, 2023

Description

This PR updates remote translog store path to be consistent with segment.

Remote Segment Store Path

  • s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/<shardid>/segments/data/
  • s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/<shardid>/segments/metadata/

Previous Translog paths

  • s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/<shardid>/<primaryterm>/(*.tlog|*.ckp)
  • s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/<shardid>/metadata

New Translog paths

  • s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/<shardid>/translog/data/<primaryterm>/(*.tlog|*.ckp)
  • s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/<shardid>/translog/metadata

Related Issues

Addresses #1 in #3589 (comment)

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Gradle Check (Jenkins) Run Completed with:

@linuxpi linuxpi force-pushed the remote-store-translog-segment-path-consistent branch from f64d50d to 670b02f Compare June 7, 2023 13:28
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: bansvaru <bansvaru@amazon.com>
@linuxpi linuxpi force-pushed the remote-store-translog-segment-path-consistent branch from 670b02f to 9773158 Compare June 7, 2023 15:20
Signed-off-by: bansvaru <bansvaru@amazon.com>
@linuxpi linuxpi force-pushed the remote-store-translog-segment-path-consistent branch from f8dbe09 to 0b4640b Compare June 7, 2023 15:30
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.indices.replication.SegmentReplicationIT.testScrollCreatedOnReplica

@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.search.backpressure.SearchBackpressureIT.testSearchShardTaskCancellationWithHighCpu
      1 org.opensearch.indices.replication.SegmentReplicationIT.testScrollCreatedOnReplica
      1 org.opensearch.action.admin.cluster.node.tasks.ResourceAwareTasksTests.testBasicTaskResourceTracking

Signed-off-by: bansvaru <bansvaru@amazon.com>
Copy link
Contributor

@BhumikaSaini-Amazon BhumikaSaini-Amazon left a comment

Choose a reason for hiding this comment

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

Thanks for adding this!

To confirm, would the new translog paths be:

s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/translog/<shardid>/data/<primaryterm>/(*.tlog|*.ckp)
s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/translog/<shardid>/metadata

OR

s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/<shardid>/translog/data/<primaryterm>/(*.tlog|*.ckp)
s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/<shardid>/translog/metadata

i.e. what is the sequence of <shardid> and translog?

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2023

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: bansvaru <bansvaru@amazon.com>
@linuxpi
Copy link
Collaborator Author

linuxpi commented Jun 8, 2023

Thanks for adding this!

To confirm, would the new translog paths be:

s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/translog/<shardid>/data/<primaryterm>/(*.tlog|*.ckp)
s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/translog/<shardid>/metadata

OR

s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/<shardid>/translog/data/<primaryterm>/(*.tlog|*.ckp)
s3://remote-store-perf-test/cluster-1/zqQpla0QS_mFK3Q42FbQ0A/<shardid>/translog/metadata

i.e. what is the sequence of <shardid> and translog?

Thanks for catching this! I updated the description, i mistakenly put shardid after translog keyword

Signed-off-by: bansvaru <bansvaru@amazon.com>
@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2023

Gradle Check (Jenkins) Run Completed with:

@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Merging #7947 (c7e7d96) into main (8773509) will decrease coverage by 0.08%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #7947      +/-   ##
============================================
- Coverage     70.88%   70.80%   -0.08%     
- Complexity    56352    56390      +38     
============================================
  Files          4700     4700              
  Lines        266549   266549              
  Branches      39099    39099              
============================================
- Hits         188937   188742     -195     
- Misses        61632    61849     +217     
+ Partials      15980    15958      -22     
Impacted Files Coverage Δ
...rg/opensearch/index/translog/RemoteFsTranslog.java 75.00% <100.00%> (ø)
...dex/translog/transfer/TranslogTransferManager.java 79.75% <100.00%> (-1.23%) ⬇️

... and 454 files with indirect coverage changes

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.search.backpressure.SearchBackpressureIT.testSearchShardTaskCancellationWithHighCpu
      1 org.opensearch.action.admin.cluster.node.tasks.ResourceAwareTasksTests.testBasicTaskResourceTracking

@gbbafna gbbafna merged commit e6348c5 into opensearch-project:main Jun 8, 2023
@gbbafna gbbafna added the backport 2.x Backport to 2.x branch label Jun 8, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 8, 2023
…7947)

Signed-off-by: bansvaru <bansvaru@amazon.com>
(cherry picked from commit e6348c5)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@linuxpi linuxpi deleted the remote-store-translog-segment-path-consistent branch June 8, 2023 11:32
dblock pushed a commit to dblock/OpenSearch that referenced this pull request Jun 8, 2023
sandeshkr419 pushed a commit to sandeshkr419/OpenSearch that referenced this pull request Jun 8, 2023
gbbafna pushed a commit that referenced this pull request Jun 9, 2023
…7947) (#7964)

(cherry picked from commit e6348c5)

Signed-off-by: bansvaru <bansvaru@amazon.com>
gaiksaya pushed a commit to gaiksaya/OpenSearch that referenced this pull request Jun 26, 2023
imRishN pushed a commit to imRishN/OpenSearch that referenced this pull request Jun 27, 2023
…pensearch-project#7947)

Signed-off-by: bansvaru <bansvaru@amazon.com>
Signed-off-by: Rishab Nahata <rnnahata@amazon.com>
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…pensearch-project#7947)

Signed-off-by: bansvaru <bansvaru@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants