Skip to content
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

Removed unnecessary use of Long.toString from BlobStoreRepository. #5833

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

baba-devv
Copy link
Contributor

Signed-off-by: Mani singh.mani1231@gmail.com

Description

Removed unnecessary use of Long.toString from BlobStoreRepository.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

Signed-off-by: Mani <singh.mani1231@gmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

Codecov Report

Merging #5833 (8a528a2) into main (fb78f11) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #5833      +/-   ##
============================================
+ Coverage     70.81%   70.90%   +0.08%     
- Complexity    58686    58760      +74     
============================================
  Files          4768     4768              
  Lines        280575   280575              
  Branches      40514    40514              
============================================
+ Hits         198685   198935     +250     
+ Misses        65636    65349     -287     
- Partials      16254    16291      +37     
Impacted Files Coverage Δ
...ch/repositories/blobstore/BlobStoreRepository.java 64.47% <100.00%> (+0.56%) ⬆️
.../java/org/opensearch/node/NodeClosedException.java 50.00% <0.00%> (-50.00%) ⬇️
.../opensearch/client/indices/CloseIndexResponse.java 42.50% <0.00%> (-48.75%) ⬇️
.../java/org/opensearch/search/dfs/AggregatedDfs.java 54.83% <0.00%> (-41.94%) ⬇️
...ava/org/opensearch/search/dfs/DfsSearchResult.java 47.87% <0.00%> (-39.37%) ⬇️
...h/action/ingest/SimulateDocumentVerboseResult.java 60.71% <0.00%> (-39.29%) ⬇️
...pensearch/action/ingest/DeletePipelineRequest.java 31.25% <0.00%> (-37.50%) ⬇️
...ensearch/client/indices/DetailAnalyzeResponse.java 20.54% <0.00%> (-24.66%) ⬇️
...opensearch/persistent/AllocatedPersistentTask.java 44.23% <0.00%> (-21.16%) ⬇️
...tions/bucket/terms/ParsedSignificantLongTerms.java 73.68% <0.00%> (-21.06%) ⬇️
... and 487 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -1820,7 +1820,7 @@ private RepositoryData getRepositoryData(long indexGen) {
return RepositoryData.EMPTY;
}
try {
final String snapshotsIndexBlobName = INDEX_FILE_PREFIX + Long.toString(indexGen);
final String snapshotsIndexBlobName = INDEX_FILE_PREFIX + indexGen;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious whether underneath it generates the same code? Do you know?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dblock , most probably, yes, I've tested that out.
And thanks for merging this.

@dblock dblock merged commit db30439 into opensearch-project:main Jan 17, 2023
@dblock dblock added the backport 2.x Backport to 2.x branch label Jan 17, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 17, 2023
…5833)

Signed-off-by: Mani <singh.mani1231@gmail.com>
(cherry picked from commit db30439)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
nknize pushed a commit to nknize/OpenSearch that referenced this pull request Jan 19, 2023
andrross pushed a commit that referenced this pull request Jan 20, 2023
…5833) (#5911)

Signed-off-by: Mani <singh.mani1231@gmail.com>
(cherry picked from commit db30439)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mani <singh.mani1231@gmail.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>
kotwanikunal pushed a commit that referenced this pull request Jan 25, 2023
…5833) (#5911)

Signed-off-by: Mani <singh.mani1231@gmail.com>
(cherry picked from commit db30439)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mani <singh.mani1231@gmail.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>
@baba-devv baba-devv deleted the Mani-BlobStoreRepo branch June 25, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants