-
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
Initialize feature flags before extensions manager #6082
Initialize feature flags before extensions manager #6082
Conversation
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
@ryanbogan @saratvemulapalli @dbwiddis Small PR on the order of initializing feature flags before instantiating the ExtensionsManager. |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
@ryanbogan Is this a flaky test failure? Can the gradle check be re-run?
|
Signed-off-by: Craig Perkins <cwperx@amazon.com>
I think that one is flaky |
Thanks @cwperks !! Ideally a test should have caught this problem. @ryanbogan / @cwperks do you want to contribute a test for |
@saratvemulapalli Are there any example ITs for extensions? I am looking into a setup similar to this: https://github.com/opensearch-project/OpenSearch/blob/main/server/src/internalClusterTest/java/org/opensearch/remotestore/RemoteStoreIT.java#L57-L64 Do you think its possible to use |
Gradle Check (Jenkins) Run Completed with:
|
@cwperks Thats a good question. It should be possible to do it as we inject it[1]. |
…t to true Signed-off-by: Craig Perkins <cwperx@amazon.com>
@saratvemulapalli @ryanbogan @andrross I added a test for this. When adding the test, I had to remove the feature flag check around binding the extensions manager otherwise the call to This means that when the experimental feature flag is not enabled, there will always be a The test fails with the previous ordering. |
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 @cwperks !!
That should be good. thanks for taking care of the test. |
Gradle Check (Jenkins) Run Completed with:
|
Merged the latest changes in from main to re-run CI |
Gradle Check (Jenkins) Run Completed with:
|
* Initialize feature flags before extensions manager Signed-off-by: Craig Perkins <cwperx@amazon.com> (cherry picked from commit 3164a3a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Initialize feature flags before extensions manager Signed-off-by: Craig Perkins <cwperx@amazon.com> (cherry picked from commit 3164a3a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Initialize feature flags before extensions manager (cherry picked from commit 3164a3a) Signed-off-by: Craig Perkins <cwperx@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>
Signed-off-by: Craig Perkins cwperx@amazon.com
Description
While testing with the experimental extensions feature flag, I found that the NoopExtensionsManager was being instantiated because the feature flags were not initialized by the time that extensions manager is being instantiated. This is a small PR to re-order Node.java to ensure the FeatureFlags are initialized before ExtensionsManager instantiation.
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.