Skip to content

[Snapshot V2] Move timestamp pinning before cluster state update#16269

Merged
sachinpkale merged 3 commits intoopensearch-project:mainfrom
gbbafna:early-pinned-time
Oct 14, 2024
Merged

[Snapshot V2] Move timestamp pinning before cluster state update#16269
sachinpkale merged 3 commits intoopensearch-project:mainfrom
gbbafna:early-pinned-time

Conversation

@gbbafna
Copy link
Copy Markdown
Contributor

@gbbafna gbbafna commented Oct 10, 2024

Description

Determine pinned timestamp before cluster state update and pin it there itself.

If we determine it too early and cluster state update to put snapshot in progress itself takes more than 1 min , the timestamp pinning fails "Timestamp to be pinned is less than current timestamp - value of cluster.remote_store.pinned_timestamps.lookback_interval" . Due to this snapshot also fails.

This fix will prevent the above failure , when cluster state update takes whatever amount of time.

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

@gbbafna gbbafna changed the title Move timestamp pinning before cluster state update [Snapshot V2] Move timestamp pinning before cluster state update Oct 10, 2024
@github-actions
Copy link
Copy Markdown
Contributor

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

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 5d14a37: 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
Copy link
Copy Markdown
Member

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 5d14a37: 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: Gaurav Bafna <gbbafna@amazon.com>
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

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

@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for 25096ca: SUCCESS

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 14, 2024

Codecov Report

Attention: Patch coverage is 55.26316% with 17 lines in your changes missing coverage. Please review.

Project coverage is 72.00%. Comparing base (20536ee) to head (25096ca).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
...ava/org/opensearch/snapshots/SnapshotsService.java 55.26% 15 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #16269      +/-   ##
============================================
- Coverage     72.00%   72.00%   -0.01%     
+ Complexity    64796    64743      -53     
============================================
  Files          5307     5307              
  Lines        302540   302541       +1     
  Branches      43708    43709       +1     
============================================
- Hits         217853   217841      -12     
+ Misses        66801    66799       -2     
- Partials      17886    17901      +15     

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

@sachinpkale sachinpkale merged commit b5dcde3 into opensearch-project:main Oct 14, 2024
@gbbafna gbbafna deleted the early-pinned-time branch October 15, 2024 02:06
@gbbafna gbbafna added the backport 2.x Backport to 2.x branch label Oct 15, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 15, 2024
)

* Move timestamp pinning before cluster state update

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

* Address PR Comments

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

* Fix IT

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
(cherry picked from commit b5dcde3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Oct 15, 2024
) (#16325)

* Move timestamp pinning before cluster state update



* Address PR Comments



* Fix IT



---------


(cherry picked from commit b5dcde3)

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 16, 2024
…nsearch-project#16269)

* Move timestamp pinning before cluster state update

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

* Address PR Comments

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

* Fix IT

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 17, 2024
…nsearch-project#16269)

* Move timestamp pinning before cluster state update

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

* Address PR Comments

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

* Fix IT

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 21, 2024
…nsearch-project#16269)

* Move timestamp pinning before cluster state update

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

* Address PR Comments

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

* Fix IT

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

---------

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this pull request Jan 21, 2025
…nsearch-project#16269)

* Move timestamp pinning before cluster state update

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

* Address PR Comments

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

* Fix IT

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>

---------

Signed-off-by: Gaurav Bafna <gbbafna@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.

2 participants