-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Removing String format in RemoteStoreMigrationAllocationDecider #14612
Removing String format in RemoteStoreMigrationAllocationDecider #14612
Conversation
790919f
to
4232c37
Compare
❌ Gradle check result for 790919f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 4232c37: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
4232c37
to
a41da6a
Compare
❌ Gradle check result for a41da6a: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
a41da6a
to
f74b597
Compare
❌ Gradle check result for f74b597: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
f74b597
to
01cc8cd
Compare
❌ Gradle check result for 01cc8cd: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: RS146BIJAY <rishavsagar4b1@gmail.com>
01cc8cd
to
3e4fd1e
Compare
❕ Gradle check result for 3e4fd1e: 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #14612 +/- ##
============================================
+ Coverage 71.65% 71.78% +0.12%
- Complexity 62272 62323 +51
============================================
Files 5140 5140
Lines 293020 293028 +8
Branches 42347 42347
============================================
+ Hits 209977 210354 +377
+ Misses 65766 65327 -439
- Partials 17277 17347 +70 ☔ View full report in Codecov by Sentry. |
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, can you please point me to a test that validates the messages
@Bukhtawar This is the unit test which validates this message: Line 158 in f9512db
|
…timise performance(opensearch-project#14612) Signed-off-by: RS146BIJAY <rishavsagar4b1@gmail.com>
Description
String.format
is a relatively expensive operation for concatenating strings. InsideRemoteStoreMigrationAllocationDecider
, the function calls toString.format
stands out as the most resource-intensive operation in terms of latency.This PR improves the latency of RemoteStoreMigrationAllocationDecider by replacing calls to String.format with more efficient StringBuilder for string concatenation.
Latency improvements
For initialising 225K shards on 500 nodes, we are observing an improvement of 31 seconds with above change.
Before the change
391,940.31 ms
After the change
360,279.58 ms
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.