-
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
[Segment Replication] - Remove redundant replica doc parsing on writes. #7279
Conversation
This change removes unnecessary doc parsing currently performed on replicas by updating applyIndexOperationOnReplicas to pass a doc id from the primary. Signed-off-by: Marc Handalian <[email protected]>
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 #7279 +/- ##
============================================
- Coverage 70.58% 70.53% -0.06%
+ Complexity 59503 59475 -28
============================================
Files 4862 4862
Lines 285531 285544 +13
Branches 41153 41153
============================================
- Hits 201555 201414 -141
- Misses 67322 67560 +238
+ Partials 16654 16570 -84
... and 468 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. |
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.
LGTM. Nice throughput boost
…#7279) This change removes unnecessary doc parsing currently performed on replicas by updating applyIndexOperationOnReplicas to pass a doc id from the primary. Signed-off-by: Marc Handalian <[email protected]> (cherry picked from commit 66e49a6) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#7279) This change removes unnecessary doc parsing currently performed on replicas by updating applyIndexOperationOnReplicas to pass a doc id from the primary. Signed-off-by: Marc Handalian <[email protected]> (cherry picked from commit 66e49a6) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#7279) (#7282) This change removes unnecessary doc parsing currently performed on replicas by updating applyIndexOperationOnReplicas to pass a doc id from the primary. (cherry picked from commit 66e49a6) Signed-off-by: Marc Handalian <[email protected]> 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>
…#7279) (#7281) This change removes unnecessary doc parsing currently performed on replicas by updating applyIndexOperationOnReplicas to pass a doc id from the primary. (cherry picked from commit 66e49a6) Signed-off-by: Marc Handalian <[email protected]> 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>
…opensearch-project#7279) This change removes unnecessary doc parsing currently performed on replicas by updating applyIndexOperationOnReplicas to pass a doc id from the primary. Signed-off-by: Marc Handalian <[email protected]>
…opensearch-project#7279) This change removes unnecessary doc parsing currently performed on replicas by updating applyIndexOperationOnReplicas to pass a doc id from the primary. Signed-off-by: Marc Handalian <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
This change removes unnecessary doc parsing currently performed on replicas.
Updates applyIndexOperationOnReplicas and applyDeleteOperationOnReplica to pass a doc id from the primary and construct a ParsedDocument manually with only the fields required to write to translog from NRTReplicationEngine.
The following benchmark was run on a 3 node cluster, SO dataset 60 shards 1 replica. Contender is with this patch.
Issues Resolved
closes #7164
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.