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

Fix aggregate processor local mode #4529

Merged
merged 3 commits into from
May 13, 2024

Conversation

kkondaka
Copy link
Collaborator

Description

Local mode option added to aggregate processor in PR #4306 has a bug that when local mode is turned on the events are not passed to the remote peer but also skipped from passing it to the local inner processor. This change fixes the issue so that local mode works as expected.

Issues Resolved

Resolves #

Check List

  • [X ] New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • [ X] Commits are signed with a real name per the DCO

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: Krishna Kondaka <[email protected]>
graytaylor0
graytaylor0 previously approved these changes May 13, 2024
*
* @return true if the event should be processed locally only
*/
default boolean isForLocalProcessingOnly(Event event) {
Copy link
Member

Choose a reason for hiding this comment

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

Should we use the existing isApplicableEventForPeerForwarding?

Put another way, do we desire to support isApplicableEventForPeerForwarding=false and isForLocalProcessingOnly=false? This would always skip.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. If both are false, it would skip

dlvenable
dlvenable previously approved these changes May 13, 2024
Signed-off-by: Krishna Kondaka <[email protected]>
@kkondaka kkondaka merged commit 1c7e881 into opensearch-project:main May 13, 2024
47 checks passed
@kkondaka kkondaka modified the milestone: v2.8 May 14, 2024
@heather-slatford
Copy link

Thanks Krishna! I appreciate you!

@kkondaka kkondaka deleted the local-mode-fix branch July 30, 2024 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants