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

[Backport] Support for translog pruning based on retention leases #1226

Merged
merged 8 commits into from
Sep 26, 2021

Conversation

saikaranam-amazon
Copy link
Member

@saikaranam-amazon saikaranam-amazon commented Sep 8, 2021

Description

Backport of #1038

Issues Resolved

N/A

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

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.

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed c5ff5261b102d8cf6fe83568daf6ab86711c9cde

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success c5ff5261b102d8cf6fe83568daf6ab86711c9cde

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success c5ff5261b102d8cf6fe83568daf6ab86711c9cde

@itiyamas
Copy link
Contributor

itiyamas commented Sep 8, 2021

start gradle check

@nknize nknize added backport PRs or issues specific to backporting features or enhancments v1.1.0 Issues, PRs, related to the 1.1.0 release distributed framework labels Sep 8, 2021
@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure c5ff5261b102d8cf6fe83568daf6ab86711c9cde
Log 504

Reports 504

@nknize
Copy link
Collaborator

nknize commented Sep 8, 2021

I've seen these issues before:

* What went wrong:
Execution failed for task ':distribution:bwc:minor:buildBwcLinuxTar'.
> Building 1.0.0 didn't generate expected file /var/CITOOL/workflow/OpenSearch_CI/PR_Checks/Gradle_Check/search/distribution/bwc/minor/build/bwc/checkout-1.0/distribution/archives/linux-tar/build/distributions/opensearch-1.0.0-SNAPSHOT-linux-x64.tar.gz

It usually means the checked out codebase that's being built for bwc testing generated a version artifact that did not match the expected version. In this case, the build expected a 1.0.0 build but got something else (my money is on 1.0.1 since 1.0 branch is now at a staged bugfix release).

I haven't had a chance to circle back on this so I'm speculating that the bwc builder is either looking for (or needs to look for) the release tag to check out and build the appropriate bwc version. We inherited that code and release tags upstream always looked like vM.m.p until OpenSearch decided to drop the github recommended v in favor of just the release number M.m.p. Perhaps the Bwc distribution builder is looking for v1.0.0 tag and not finding it so falling back to the 1.0 branch (which is now a staged 1.0.1 and 💥 ).

@adnapibar is familiar with the BWC builder so perhaps he can take a look?

@dblock
Copy link
Member

dblock commented Sep 8, 2021

We should re-add the v in the tag if this is the case, see opensearch-project/.github#35.

@nknize
Copy link
Collaborator

nknize commented Sep 8, 2021

Is this feature a blocker for the 1.1 release or can it hold and bake a while for 1.2?

@saikaranam-amazon
Copy link
Member Author

Is this feature a blocker for the 1.1 release or can it hold and bake a while for 1.2?

This is blocker for 1.1 release

@adnapibar
Copy link
Contributor

adnapibar commented Sep 8, 2021

Can you rebase your branch onto https://github.com/opensearch-project/OpenSearch/tree/1.x

@nknize
Copy link
Collaborator

nknize commented Sep 8, 2021

This is blocker for 1.1 release

What is it blocking?

@saikaranam-amazon
Copy link
Member Author

Can you rebase your branch onto https://github.com/opensearch-project/OpenSearch/tree/1.x

Done. Pushed the change

What is it blocking?

The changes are needed for the replication plugin releasing with 1.1

@nknize
Copy link
Collaborator

nknize commented Sep 8, 2021

The changes are needed for the replication plugin releasing with 1.1

Do you have a merged PR on the replication plugin repo that depends on this logic?

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 81f64c4d5271944b354d5698becc87579fdfbc5e

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 81f64c4d5271944b354d5698becc87579fdfbc5e

@saikaranam-amazon
Copy link
Member Author

Do you have a merged PR on the replication plugin repo that depends on this logic?

Yes, changes are merged here: link

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 81f64c4d5271944b354d5698becc87579fdfbc5e

@nknize
Copy link
Collaborator

nknize commented Sep 8, 2021

Yes, changes are merged here:

That change was merged 2 months ago; and it depends on a setting that has not been in OpenSearch core until today? How is this possible? Release is scheduled for less than a week and we're trying to backport a new setting that has no time to bake.

Huge -1 for this.

@saikaranam-amazon
Copy link
Member Author

saikaranam-amazon commented Sep 8, 2021

That change was merged 2 months ago; and it depends on a setting that has not been in OpenSearch core until today? How is this possible? Release is scheduled for less than a week and we're trying to backport a new setting that has no time to bake.

The changes related to this PR on OpenSearch was raised more than 1 month back after thorough testing from our side. As Opensearch team was tracking multiple releases in between 1.1 and 1.0, changes to previous version were prioritized and reviewed before this.

@nknize
Copy link
Collaborator

nknize commented Sep 8, 2021

The changes related to this PR on OpenSearch was raised more than 1 month back...

The issue was opened 22 days ago. The PR was opened before the issue. The changes were only recently merged to main, and a backport just now opened (2 hrs ago) against 1.x less than a week before the planned release. This is too late. I'm a fan of the proposed change but this didn't have enough time to bake before the 1.1 release. Huge recommendation to bump to 1.2.

after thorough testing from our side.

Unfortunately that's not the primary core CI; and we're now playing gradle check roulette in hopes that bwc picks a seed that passes all gates in order to wedge it in time for a release. This isn't a good approach as it only leads to knee jerk bugfix releases (which are not the easiest to do atm).

@nknize
Copy link
Collaborator

nknize commented Sep 8, 2021

If we don't want to hold the feature for a 1.2 release then I recommend we hold the 1.1 release for at least a week to let this settle. I like the change, it's just too late to be wedging these in for a 1.1 release in less than a week. I'm going to mark this as a blocker for 1.1 so we have traceability. Let's hold on removing that blocker label until we're comfortable the changes have had time to bake.

@adnapibar
Copy link
Contributor

start gradle check

@CEHENKLE
Copy link
Member

CEHENKLE commented Sep 8, 2021

@saikaranam-amazon Hi Sai! Can you tell us more about how your testing was done? If we're still seeing changes coming in against 1.1, how have you been able to validate the change against the full set?

Thanks!
/C

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success a958a528d1c5eecdf1bfb265d4cda05bebcb96ad

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 88ce28ba2f2f61ecde355f1ee60f4bc688a963e3

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 88ce28ba2f2f61ecde355f1ee60f4bc688a963e3

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 88ce28ba2f2f61ecde355f1ee60f4bc688a963e3

@nknize
Copy link
Collaborator

nknize commented Sep 25, 2021

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 52f50ddd6680eafc9a528f84b76bee39ab9534a9

…oject#1038)

(cherry picked from commit a9e1913)

Signed-off-by: Sai Kumar <karanas@amazon.com>
Signed-off-by: Sai Kumar <karanas@amazon.com>
This commit adds deprecation flags to all added settings, variables, and methods
specific to ccr's retention lease pruning mechanism.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Sai Kumar <karanas@amazon.com>
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Sai Kumar <karanas@amazon.com>
Signed-off-by: Sai Kumar <karanas@amazon.com>
@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 52f50ddd6680eafc9a528f84b76bee39ab9534a9

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 6c38cab

@nknize
Copy link
Collaborator

nknize commented Sep 25, 2021

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Precommit failure 52f50ddd6680eafc9a528f84b76bee39ab9534a9
Log 1211

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 6c38cab

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 6c38cab

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 52f50ddd6680eafc9a528f84b76bee39ab9534a9
Log 573

Reports 573

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 6c38cab
Log 574

Reports 574

@nknize
Copy link
Collaborator

nknize commented Sep 25, 2021

unrelated failure.. starting gradle check over

@nknize
Copy link
Collaborator

nknize commented Sep 25, 2021

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 6c38cab
Log 575

Reports 575

@nknize nknize self-requested a review September 26, 2021 03:00
Copy link
Collaborator

@nknize nknize left a comment

Choose a reason for hiding this comment

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

Tests passing, deprecations in place.. this finally LGTM!

@nknize nknize merged commit 294cee4 into opensearch-project:1.x Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport PRs or issues specific to backporting features or enhancments distributed framework Severity-Blocker v1.1.0 Issues, PRs, related to the 1.1.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants