Skip to content

Fixes a false reporting bug for the invalidEventHandles counter#6420

Merged
dlvenable merged 1 commit into
opensearch-project:mainfrom
dlvenable:invalid-event-handles-metric-fix
Jan 22, 2026
Merged

Fixes a false reporting bug for the invalidEventHandles counter#6420
dlvenable merged 1 commit into
opensearch-project:mainfrom
dlvenable:invalid-event-handles-metric-fix

Conversation

@dlvenable
Copy link
Copy Markdown
Member

Description

Fixes a bug with the invalidEventHandles counter in the PipelineRunner. This metric was being counted for any event that is not a default event (ie. for aggregate events). This would happen even if there is no need to discard the event. This change should count this when aggregate events should be released but are not. We probably need some deeper investigation into how we can properly release aggregate events. But, for now this metric will be more accurate.

Also improves some code to reduce unnecessary variables, use final modifiers, and better legibility.

Issues Resolved

N/A

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • 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.

…r. This metric was being counted for any event that is not a default event (ie. for aggregate events). This would happen even if there is no need to discard the event. This change should count this when aggregate events should be released but are not. We probably need some deeper investigation into how we can properly release aggregate events. But, for now this metric will be more accurate.

Also improves some code to reduce unnecessary variables, use final modifiers, and better legibility.

Signed-off-by: David Venable <dlv@amazon.com>
@dlvenable dlvenable merged commit f2512e0 into opensearch-project:main Jan 22, 2026
50 of 52 checks passed
@dlvenable dlvenable deleted the invalid-event-handles-metric-fix branch January 22, 2026 23:31
san81 pushed a commit to san81/data-prepper that referenced this pull request Jan 27, 2026
…search-project#6420)

Fixes a bug with the invalidEventHandles counter in the PipelineRunner. This metric was being counted for any event that is not a default event (ie. for aggregate events). This would happen even if there is no need to discard the event. This change should count this when aggregate events should be released but are not. We probably need some deeper investigation into how we can properly release aggregate events. But, for now this metric will be more accurate.

Also improves some code to reduce unnecessary variables, use final modifiers, and better legibility.

Signed-off-by: David Venable <dlv@amazon.com>
simonelbaz pushed a commit to simonelbaz/data-prepper that referenced this pull request Jan 31, 2026
…search-project#6420)

Fixes a bug with the invalidEventHandles counter in the PipelineRunner. This metric was being counted for any event that is not a default event (ie. for aggregate events). This would happen even if there is no need to discard the event. This change should count this when aggregate events should be released but are not. We probably need some deeper investigation into how we can properly release aggregate events. But, for now this metric will be more accurate.

Also improves some code to reduce unnecessary variables, use final modifiers, and better legibility.

Signed-off-by: David Venable <dlv@amazon.com>
Signed-off-by: Simon ELBAZ <elbazsimon9@gmail.com>
simonelbaz pushed a commit to simonelbaz/data-prepper that referenced this pull request Jan 31, 2026
…search-project#6420)

Fixes a bug with the invalidEventHandles counter in the PipelineRunner. This metric was being counted for any event that is not a default event (ie. for aggregate events). This would happen even if there is no need to discard the event. This change should count this when aggregate events should be released but are not. We probably need some deeper investigation into how we can properly release aggregate events. But, for now this metric will be more accurate.

Also improves some code to reduce unnecessary variables, use final modifiers, and better legibility.

Signed-off-by: David Venable <dlv@amazon.com>
simonelbaz pushed a commit to simonelbaz/data-prepper that referenced this pull request Jan 31, 2026
…search-project#6420)

Fixes a bug with the invalidEventHandles counter in the PipelineRunner. This metric was being counted for any event that is not a default event (ie. for aggregate events). This would happen even if there is no need to discard the event. This change should count this when aggregate events should be released but are not. We probably need some deeper investigation into how we can properly release aggregate events. But, for now this metric will be more accurate.

Also improves some code to reduce unnecessary variables, use final modifiers, and better legibility.

Signed-off-by: David Venable <dlv@amazon.com>
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