Add cache reservation logic#6350
Conversation
Gradle Check (Jenkins) Run Completed with:
|
e72b498 to
e24ab81
Compare
Gradle Check (Jenkins) Run Completed with:
|
e24ab81 to
32cba61
Compare
32cba61 to
302a03a
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
27e8b27 to
de4048b
Compare
Gradle Check (Jenkins) Run Completed with:
|
| For a remote snapshot index, the cache path is used to initialize the shards. | ||
| For a local index, a local shard path is loaded or a new path is calculated. | ||
| */ | ||
| private ShardPath getShardPath(ShardRouting routing, ShardId shardId, ShardLock lock) throws IOException { |
There was a problem hiding this comment.
What was the purpose of this refactoring? This is a private method that is only called from one place, so why break it into a separate method in this PR?
There was a problem hiding this comment.
I did it for better readability. The initialization block was a lot of loading the shard path. This makes it easier to walk through that logic as a unit.
4670c01 to
c7d7e70
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
c7d7e70 to
a46ecba
Compare
Gradle Check (Jenkins) Run Completed with:
|
d59bc75 to
b409918
Compare
Gradle Check (Jenkins) Run Completed with:
|
server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java
Show resolved
Hide resolved
b409918 to
871f5e7
Compare
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
871f5e7 to
60eb37f
Compare
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 #6350 +/- ##
============================================
- Coverage 70.76% 70.73% -0.04%
+ Complexity 59065 59062 -3
============================================
Files 4801 4801
Lines 282816 282901 +85
Branches 40773 40787 +14
============================================
- Hits 200134 200100 -34
- Misses 66273 66372 +99
- Partials 16409 16429 +20
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
|
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-6350-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 eb78246b93766e31a47112ab01872fc2d9052374
# Push it to GitHub
git push --set-upstream origin backport/backport-6350-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.xThen, create a pull request where the |
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com> (cherry picked from commit eb78246)
|
Backport: #6485 |
* Include file cache stats in node stats response (#6333) This change exposes the file cache stats as part the node stats API response. Signed-off-by: Rabi Panda <adnapibar@gmail.com> (cherry picked from commit 0f3b870) * Add cache reservation logic (#6350) Signed-off-by: Kunal Kotwani <kkotwani@amazon.com> (cherry picked from commit eb78246) --------- Co-authored-by: Rabi Panda <adnapibar@gmail.com>
Description
node.search.cache.sizeconfiguration for the nodeNodePathfor the first data path configured on the node, and defaults to100 MBotherwise.Issues Resolved
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.