-
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
[Backport 2.x] Make IndexStoreListener a pluggable interface #16594
Conversation
Signed-off-by: Jay Deng <jayd0104@gmail.com> (cherry picked from commit 9b7681c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Ah and it's because I am also changing the constructor here to the new class:
Should I move IMO this isn't really a breaking change because the class that was modified is marked as internal and transitively that means the constructor that was using said internal class is also internal. I do get that technically it is breaking though since we are changing the public constructor / removing the public classes. |
@jed326 The breaking changes check is pretty strict and we can't override it because it will just keep failing for all subsequent PRs. Can you create an empty interface/class |
Thanks @andrross , that makes sense let me give that a try. I'm not entirely sure if extending the new interface will work but worst case we can just leave the untouched old one around too. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #16594 +/- ##
============================================
+ Coverage 71.75% 71.86% +0.11%
- Complexity 65322 65379 +57
============================================
Files 5313 5314 +1
Lines 305109 305139 +30
Branches 44456 44458 +2
============================================
+ Hits 218920 219291 +371
+ Misses 67970 67614 -356
- Partials 18219 18234 +15 ☔ View full report in Codecov by Sentry. |
@jed326 the @andrross suggestion is correct (or we could place |
7234c74
to
b072b6b
Compare
Signed-off-by: Jay Deng <jayd0104@gmail.com>
b072b6b
to
ee72da1
Compare
❕ Gradle check result for ee72da1: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
* This constructor is kept around on 2.x to avoid breaking changes. | ||
*/ | ||
@Deprecated(forRemoval = true, since = "2.19.0") | ||
public NodeEnvironment(Settings settings, Environment environment, IndexStoreListener indexStoreListener) throws IOException { |
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.
@reta was this change required? I thought we exempted the constructors from the check?
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.
Backport 9b7681c from #16583.