Skip to content

Remove SingleThread annotation from Drop Events Processor#6417

Merged
dlvenable merged 1 commit into
opensearch-project:mainfrom
kkondaka:drop-events-processor-fix
Feb 4, 2026
Merged

Remove SingleThread annotation from Drop Events Processor#6417
dlvenable merged 1 commit into
opensearch-project:mainfrom
kkondaka:drop-events-processor-fix

Conversation

@kkondaka
Copy link
Copy Markdown
Collaborator

Description

Remove SingleThread annotation from Drop Events Processor. There is no state maintained in the processor to use SingleThread annotation. Multiple worker threads should be able to use one processor object.

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

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 <krishkdk@amazon.com>
import java.util.Collections;
import java.util.stream.Collectors;

@SingleThread
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there any context for why this was added in the first place?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We originally added this annotation because the expression evaluator was not thread safe. That was resolved in #1840. So this processor doesn't need to have per-thread implementations.

@dlvenable dlvenable merged commit 7d5e8de into opensearch-project:main Feb 4, 2026
49 of 52 checks passed
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.

3 participants