-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 TranslogDeletionPolicy abstract for extension #1456
Make TranslogDeletionPolicy abstract for extension #1456
Conversation
Can one of the admins verify this patch? |
✅ DCO Check Passed 6f9f31d412d6c2378393304d1a4bce1faaddc03a |
✅ Gradle Wrapper Validation success 6f9f31d412d6c2378393304d1a4bce1faaddc03a |
✅ Gradle Precommit success 6f9f31d412d6c2378393304d1a4bce1faaddc03a |
start gradle check |
✅ Gradle Check success 6f9f31d412d6c2378393304d1a4bce1faaddc03a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. A few questions, nits, and changes.
server/src/main/java/org/opensearch/index/translog/DefaultTranslogDeletionPolicy.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/translog/TranslogDeletionPolicy.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/translog/TranslogDeletionPolicy.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/translog/TranslogDeletionPolicy.java
Show resolved
Hide resolved
server/src/test/java/org/opensearch/index/engine/EngineConfigFactoryTests.java
Show resolved
Hide resolved
server/src/test/java/org/opensearch/index/engine/InternalEngineTests.java
Outdated
Show resolved
Hide resolved
✅ Gradle Wrapper Validation success cfcdbb23e77082e8792c40e49d968bd2410d353a |
✅ Gradle Precommit success cfcdbb23e77082e8792c40e49d968bd2410d353a |
✅ Gradle Check success cfcdbb23e77082e8792c40e49d968bd2410d353a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM
server/src/main/java/org/opensearch/index/translog/DefaultTranslogDeletionPolicy.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/translog/TranslogDeletionPolicy.java
Show resolved
Hide resolved
✅ Gradle Wrapper Validation success c94a6749a53157d22372bf24bbb8ac8a89b2788e |
✅ Gradle Precommit success c94a6749a53157d22372bf24bbb8ac8a89b2788e |
❌ Gradle Check failure c94a6749a53157d22372bf24bbb8ac8a89b2788e |
As part of the commit 2ebd0e0, we added a new method to the EnginePlugin to provide a custom TranslogDeletionPolicy. This commit makes minTranslogGenRequired method abstract in this class for implementation by child classes. The default implementation is provided by DefaultTranslogDeletionPolicy. Signed-off-by: Rabi Panda <adnapibar@gmail.com>
Signed-off-by: Rabi Panda <adnapibar@gmail.com>
✅ Gradle Wrapper Validation success ecc278c |
✅ Gradle Precommit success ecc278c |
start gradle check |
Test failure not reproducible, going to retry! |
start gradle check |
Documenting initial failure for posterity. I don't see any transport issues,. It looks like a network connection may have died so could be a jenkins flake out.
|
One more not reproducible
|
start gradle check |
Ready for backport |
As part of the commit 2ebd0e0, we added a new method to the EnginePlugin to provide a custom TranslogDeletionPolicy. This commit makes minTranslogGenRequired method abstract in this class for implementation by child classes. The default implementation is provided by DefaultTranslogDeletionPolicy. Signed-off-by: Rabi Panda <adnapibar@gmail.com>
Description
As part of the commit 2ebd0e0, we added a new method to the EnginePlugin to provide a custom
TranslogDeletionPolicy.
This commit makesminTranslogGenRequired
method abstract in this class for overridden by plugins. The default implementation is provided byDefaultTranslogDeletionPolicy
.Issues Resolved
Relates #1260
Check List
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.
Signed-off-by: Rabi Panda adnapibar@gmail.com