-
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
[Refactor] remaining ImmutableOpenMap usage to j.u.Map and remove class #7309
[Refactor] remaining ImmutableOpenMap usage to j.u.Map and remove class #7309
Conversation
Refactors all remaining usage of HPPC backed ImmutableOpenMap to j.u.Map. This is the last usage of the class so ImmutableOpenMap is completely removed in favor of java maps. Signed-off-by: Nicholas Walter Knize <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
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 #7309 +/- ##
============================================
+ Coverage 70.45% 70.67% +0.21%
- Complexity 59381 59513 +132
============================================
Files 4862 4859 -3
Lines 285489 285339 -150
Branches 41144 41133 -11
============================================
+ Hits 201143 201653 +510
+ Misses 67777 67166 -611
+ Partials 16569 16520 -49
|
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.
This refactoring has caused some issues for the plugins, but since we've already started it will be good to finish.
I'm wondering if it'll be less impactful on downstream dependencies to do the backport in a single commit that combines all the ImmutableOpenMap removal changes.
I'm not opposed that. Or I can take care of all of these backports pretty quickly myself. |
….com/opensearch-project/OpenSearch/pull/7309 Signed-off-by: Joshua Palis <[email protected]>
…y and multi-entity detectors (#880) * Initial historical analysis commit. Registers ForwardADTaskTransportAction, ADBatchAnomalyResultTransportAction, replaces Internal Aggregation classes with corresponding Parsed Aggregation class. removes hashring from historical analysis workflow Signed-off-by: Joshua Palis <[email protected]> * Reverts changes to AnomalyResultBulkIndexHandler and uses the SDKRestClient to bulk index anomaly results, replaces transport service calls with corresponding client execute calls. Adds check for request content for job details registration, this prevents historical task requests from triggering job details registration Signed-off-by: Joshua Palis <[email protected]> * Adds another check for job details registration for start path only, adds transport action for stop historical detector Signed-off-by: Joshua Palis <[email protected]> * Fixing import error, test classes Signed-off-by: Joshua Palis <[email protected]> * spotlessApply Signed-off-by: Joshua Palis <[email protected]> * Commenting out parse bucket tests since ParsedAggregation classes have no constructor to access via reflection Signed-off-by: Joshua Palis <[email protected]> * Addressing PR comments Signed-off-by: Joshua Palis <[email protected]> * replaceing .valuesIt() with .values().iterator() due tohttps://github.com/opensearch-project/OpenSearch/pull/7309 Signed-off-by: Joshua Palis <[email protected]> * removing ImmutableOpenMap Signed-off-by: Joshua Palis <[email protected]> * Reverting dataGeneration script changes Signed-off-by: Joshua Palis <[email protected]> * fixing iterator Signed-off-by: Joshua Palis <[email protected]> * Fixing data nodes iterator Signed-off-by: Joshua Palis <[email protected]> * removing value from iterator Signed-off-by: Joshua Palis <[email protected]> --------- Signed-off-by: Joshua Palis <[email protected]>
…nsearch-project#7309) Refactors all remaining usage of HPPC backed ImmutableOpenMap to j.u.Map. This is the last usage of the class so ImmutableOpenMap is completely removed in favor of java maps. Signed-off-by: Nicholas Walter Knize <[email protected]>
Due to this refactoring, we have seen improvement in heap memory usage. The |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-7309-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d984f5028e77e281ed08386d43de4e64e06f2bf8
# Push it to GitHub
git push --set-upstream origin backport/backport-7309-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
…nsearch-project#7309) Refactors all remaining usage of HPPC backed ImmutableOpenMap to j.u.Map. This is the last usage of the class so ImmutableOpenMap is completely removed in favor of java maps. Signed-off-by: Nicholas Walter Knize <[email protected]> (cherry picked from commit d984f50)
…nsearch-project#7309) Refactors all remaining usage of HPPC backed ImmutableOpenMap to j.u.Map. This is the last usage of the class so ImmutableOpenMap is completely removed in favor of java maps. Signed-off-by: Nicholas Walter Knize <[email protected]> (cherry picked from commit d984f50)
…) (#8316) Refactors all remaining usage of HPPC backed ImmutableOpenMap to j.u.Map. This is the last usage of the class so ImmutableOpenMap is completely removed in favor of java maps. Signed-off-by: Nicholas Walter Knize <[email protected]> (cherry picked from commit d984f50)
…nsearch-project#7309) Refactors all remaining usage of HPPC backed ImmutableOpenMap to j.u.Map. This is the last usage of the class so ImmutableOpenMap is completely removed in favor of java maps. Signed-off-by: Nicholas Walter Knize <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Refactors all remaining usage of HPPC backed
ImmutableOpenMap
toj.u.Map
. This is the last usage of the class soImmutableOpenMap
is also completely removed in favor ofjava.util.Map
usage.relates #5910