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

Remove unexpected event handle message #4388

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

kkondaka
Copy link
Collaborator

@kkondaka kkondaka commented Apr 3, 2024

Description

Remove unexpected event handle message.

This message was added initially because duplicate release was not expected. But with remote peer and aggregate processor support, this can happen now. So, removing the message and the metric.

Issues Resolved

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

Check List

  • 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.

dlvenable
dlvenable previously approved these changes Apr 3, 2024
graytaylor0
graytaylor0 previously approved these changes Apr 3, 2024
@dlvenable
Copy link
Member

@kkondaka , Should we backport this to 2.7.1?

Signed-off-by: Krishna Kondaka <[email protected]>
@kkondaka kkondaka dismissed stale reviews from graytaylor0 and dlvenable via 46d44a9 April 3, 2024 23:23
void testDefaultAcknowledgementInvalidRelease() {
defaultAcknowledgementSet.add(event);
defaultAcknowledgementSet.complete();
DefaultAcknowledgementSet secondAcknowledgementSet = createObjectUnderTest();
assertThat(defaultAcknowledgementSet.release(handle2, true), equalTo(false));
assertThat(invalidReleasesCounter, equalTo(1));
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 assert this is equal to 0?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually, the counter should be removed.

@kkondaka kkondaka merged commit 69fb4f0 into opensearch-project:main Apr 4, 2024
47 checks passed
@kkondaka kkondaka added this to the v2.8 milestone May 14, 2024
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