-
Notifications
You must be signed in to change notification settings - Fork 300
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
Removes all ImmutableOpenMap references #2726
Removes all ImmutableOpenMap references #2726
Conversation
CI issues will be resolved once a maven artifact is available with the latest ImmutableOpenMap change. I see that an artifact was pushed to https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/opensearch-core/3.0.0-SNAPSHOT/ but I'm not sure why the CI is still failing since we use sonatype as a repo for artifacts. |
@@ -32,7 +33,7 @@ class GetSettingsResponseContainsIndicesMatcher extends TypeSafeDiagnosingMatche | |||
@Override | |||
protected boolean matchesSafely(GetSettingsResponse response, Description mismatchDescription) { | |||
|
|||
final ImmutableOpenMap<String, Settings> indexToSettings = response.getIndexToSettings(); | |||
final Map<String, Settings> indexToSettings = response.getIndexToSettings(); | |||
for (String index : expectedIndices) { | |||
if (!indexToSettings.containsKey(index)) { | |||
mismatchDescription |
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.
Below this line I think you need to change the call from .keys()
to .keySet()
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.
ahh..good catch!
Signed-off-by: Darshit Chanpura <[email protected]>
626583a
to
2ae6795
Compare
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #2726 +/- ##
============================================
+ Coverage 61.47% 61.54% +0.06%
- Complexity 3397 3398 +1
============================================
Files 272 272
Lines 18740 18740
Branches 3284 3284
============================================
+ Hits 11521 11533 +12
+ Misses 5620 5610 -10
+ Partials 1599 1597 -2 |
) Signed-off-by: Darshit Chanpura <[email protected]>
) Signed-off-by: Darshit Chanpura <[email protected]> Signed-off-by: Maciej Mierzwa <[email protected]>
) Signed-off-by: Darshit Chanpura <[email protected]> Signed-off-by: Sam <[email protected]>
) Signed-off-by: Darshit Chanpura <[email protected]>
* Resolve ImmutableOpenMap issue from core refactor (#2715) * Switch from ImmutableOpenMap to Map in AliasExistsMatcher (#2725) * Remove references to ObjectObjectCursor Signed-off-by: Craig Perkins <[email protected]> * Switch from ImmutableOpenMap to Map in AliasExistsMatcher (#2725) * Remove references to ObjectObjectCursor Signed-off-by: Craig Perkins <[email protected]> * Removes a missed reference for ImmutableOpenMap (#2726) Signed-off-by: Darshit Chanpura <[email protected]> * Update ClusterInfoHolder Signed-off-by: Craig Perkins <[email protected]> * Run spotlessApply Signed-off-by: Craig Perkins <[email protected]> --------- Signed-off-by: Craig Perkins <[email protected]> Signed-off-by: Darshit Chanpura <[email protected]> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Darshit Chanpura <[email protected]>
Continutation of #2715 #2725
Check List
- [ ] New functionality includes testing- [ ] New functionality has been documentedBy 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.