Introducing indexing & deletion strategy planner interfaces#20585
Introducing indexing & deletion strategy planner interfaces#20585shank9918 wants to merge 1 commit intoopensearch-project:mainfrom
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
344f4b8 to
944cf1a
Compare
|
❌ Gradle check result for 944cf1a: 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? |
9513ca5 to
479e74f
Compare
|
❌ Gradle check result for 479e74f: 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? |
479e74f to
eecb2d0
Compare
server/src/main/java/org/opensearch/index/engine/DeletionStrategy.java
Outdated
Show resolved
Hide resolved
|
❌ Gradle check result for eecb2d0: 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? |
eecb2d0 to
6be6a79
Compare
|
❌ Gradle check result for 6be6a79: 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? |
3c3a9cd to
83bcfc7
Compare
|
❌ Gradle check result for 83bcfc7: 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 83bcfc7: 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? |
Bukhtawar
left a comment
There was a problem hiding this comment.
Thanks for the changes, left minor comment, lets tease out Strategy classes into a dedicated Java package
server/src/main/java/org/opensearch/index/engine/DeletionStrategyPlanner.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/engine/DeletionStrategyPlanner.java
Outdated
Show resolved
Hide resolved
The Planner classes rely on the package-private LiveVersionMap and VersionValue. Relocating strategy and planner classes to a dedicated package would force us to modify their access levels which I want to avoid. |
187b95f to
2c61040
Compare
|
Persistent review updated to latest commit 2c61040 |
server/src/main/java/org/opensearch/index/engine/OperationStrategyPlanner.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/engine/OperationStrategyPlanner.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/engine/OperationStrategyPlanner.java
Outdated
Show resolved
Hide resolved
|
Persistent review updated to latest commit 135ed2c |
server/src/main/java/org/opensearch/index/engine/IndexingStrategyPlanner.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/engine/DeletionStrategyPlanner.java
Outdated
Show resolved
Hide resolved
|
Persistent review updated to latest commit 614ddcb |
614ddcb to
cf08e29
Compare
|
Persistent review updated to latest commit cf08e29 |
cf08e29 to
a681e1e
Compare
|
Persistent review updated to latest commit a681e1e |
Signed-off-by: Shashank Gowri <shnkgo@amazon.com>
a681e1e to
22e6d16
Compare
|
Persistent review updated to latest commit 22e6d16 |
|
❌ Gradle check result for 22e6d16: 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? |
Description
Refactor indexing and deletion planning logic into dedicated planner interfaces responsible for primary and non-primary execution. Default planner implementations would encapsulate the existing InternalEngine behavior, while enabling alternative engines to provide custom planners or reuse shared implementations.
Update Engine implementations to delegate planning decisions to injected planner instances. The default behavior for InternalEngine should remain unchanged, ensuring backward compatibility.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
[Feature Request] Refactor Engine internals to decouple operation/result types and introduce pluggable planning strategies
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.