-
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
[Searchable Snapshot] Deleted the cache path on index deletion. #6830
[Searchable Snapshot] Deleted the cache path on index deletion. #6830
Conversation
The solution LGTM. Are you working on adding in the test? |
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 #6830 +/- ##
============================================
+ Coverage 70.65% 70.81% +0.16%
- Complexity 59162 59289 +127
============================================
Files 4812 4812
Lines 283615 283616 +1
Branches 40896 40896
============================================
+ Hits 200394 200854 +460
+ Misses 66764 66343 -421
+ Partials 16457 16419 -38
... and 455 files with indirect coverage changes 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:
|
8cfcbfe
to
3f862b8
Compare
Gradle Check (Jenkins) Run Completed with:
|
@kotwanikunal Unit Tests doesn't exist for Either the cache directory must be completely deleted. If not, the files in the cache directory must be properly closed. This is currently represented in the Integ Test case. Or should we change it to only first condition where the cache directory shouldn't exist at all? |
3f862b8
to
7b0fc4a
Compare
@kotwanikunal Please let me know if more changes are required for this PR. |
Gradle Check (Jenkins) Run Completed with:
|
@harshjain2 LGTM. @andrross WDYT? |
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.
Either the cache directory must be completely deleted. If not, the files in the cache directory must be properly closed. This is currently represented in the Integ Test case. Or should we change it to only first condition where the cache directory shouldn't exist at all?
We deterministically delete the files when the index is deleted, therefore the case that the files exist but must be closed will never be encountered. I think we should remove that logic from the test case.
CHANGELOG.md
Outdated
@@ -86,6 +86,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | |||
- [Segment Replication] Apply backpressure when replicas fall behind ([#6563](https://github.com/opensearch-project/OpenSearch/pull/6563)) | |||
- [Remote Store] Integrate remote segment store in peer recovery flow ([#6664](https://github.com/opensearch-project/OpenSearch/pull/6664)) | |||
- [Segment Replication] Add new cluster setting to set replication strategy by default for all indices in cluster. ([#6791](https://github.com/opensearch-project/OpenSearch/pull/6791)) | |||
- [Searchable Snapshot] Deleted the cache path on index deletion. ([#6830](https://github.com/opensearch-project/OpenSearch/pull/6830)) |
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.
We can omit the changelog here. We'll have a single over-arching entry for the feature and do not need these incremental fixes in the changelog.
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.
Removed.
Signed-off-by: Harsh Jain <harshjai@amazon.com>
Signed-off-by: Harsh Jain <harshjai@amazon.com>
Signed-off-by: Harsh Jain <harshjai@amazon.com>
Signed-off-by: Harsh Jain <harshjai@amazon.com>
7b0fc4a
to
e42b83b
Compare
|
Gradle Check (Jenkins) Run Completed with:
|
@andrross I have addressed the feedback. Let me know if you have any other feedback. |
* [SearchableSnapshot] Deleted the cache path on index deletion. Signed-off-by: Harsh Jain <harshjai@amazon.com> * Added changelog, updated Integ Test. Signed-off-by: Harsh Jain <harshjai@amazon.com> * Removed changelog entry, updated validation in integ tests. Signed-off-by: Harsh Jain <harshjai@amazon.com> * Removed unused import statements. Signed-off-by: Harsh Jain <harshjai@amazon.com> --------- Signed-off-by: Harsh Jain <harshjai@amazon.com> Co-authored-by: Harsh Jain <harshjai@amazon.com> (cherry picked from commit bd9b00d) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… (#6856) * [SearchableSnapshot] Deleted the cache path on index deletion. * Added changelog, updated Integ Test. * Removed changelog entry, updated validation in integ tests. * Removed unused import statements. --------- (cherry picked from commit bd9b00d) Signed-off-by: Harsh Jain <harshjai@amazon.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> Co-authored-by: Harsh Jain <harshjai@amazon.com>
…n. (opensearch-project#6830) (opensearch-project#6856)" This reverts commit 2bb68aa.
…search-project#6830) * [SearchableSnapshot] Deleted the cache path on index deletion. Signed-off-by: Harsh Jain <harshjai@amazon.com> * Added changelog, updated Integ Test. Signed-off-by: Harsh Jain <harshjai@amazon.com> * Removed changelog entry, updated validation in integ tests. Signed-off-by: Harsh Jain <harshjai@amazon.com> * Removed unused import statements. Signed-off-by: Harsh Jain <harshjai@amazon.com> --------- Signed-off-by: Harsh Jain <harshjai@amazon.com> Co-authored-by: Harsh Jain <harshjai@amazon.com> Signed-off-by: Valentin Mitrofanov <mitrofmep@gmail.com>
Description
Fix for the issue due to which cache path was not deleted when index is deleted.
Issues Resolved
Resolves #6532
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.