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

Cherry-pick #16215 to 7.x: azure-event hub: improve error handling and stop input if the event has not been processed correctly #17195

Merged
merged 2 commits into from
Mar 24, 2020

Conversation

narph
Copy link
Contributor

@narph narph commented Mar 24, 2020

Cherry-pick of PR #16215 to 7.x branch. Original message:

Should help with issue #15671

Previously, if the event was not successfully processed, the checkpoint would have still been updated and the input would move to the next set of messages.
compositeHandlers method returns nil either way https://github.com/elastic/beats/blob/master/vendor/github.com/Azure/azure-event-hubs-go/v3/eph/eph.go#L406
so the checkpoint is updated https://github.com/elastic/beats/blob/master/vendor/github.com/Azure/azure-event-hubs-go/v3/receiver.go#L242.
In the new release 3.1.2 for the azure-event-hub sdk, the error is returned https://github.com/Azure/azure-event-hubs-go/blob/v3.1.2/eph/eph.go#L423 so the checkpoint is not updated anymore.

This is still not e2e ack as this does not stop if the events were not sent to ES.

…as not been processed correctly (elastic#16215)

* work on GA

* update changelog

* go vet

* work on error

* error handling

* error message

* temp

* temp

* undo tests

* update

* integration

* fmt update

* upgrade

* upgrade

* mage vendor

* notice

(cherry picked from commit 1d3bc8c)
@narph narph self-assigned this Mar 24, 2020
@narph narph added [zube]: In Review backport Team:Integrations Label for the Integrations team Team:Platforms Label for the Integrations - Platforms team labels Mar 24, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@narph narph added the v7.7.0 label Mar 24, 2020
@zube zube bot removed the v7.7.0 label Mar 24, 2020
go.sum Outdated
github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q=
github.com/antlr/antlr4 v0.0.0-20200225173536-225249fdaef5 h1:nkZ9axP+MvUFCu8JRN/MCY+DmTfs6lY7hE0QnJbxSdI=
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this should not be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ran mage vendor , updated go.sum

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@ChrsMark ChrsMark left a comment

Choose a reason for hiding this comment

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

@narph I think that dependencies would need a revisit. Also the link in the original PR is wrong.

@narph narph requested a review from ChrsMark March 24, 2020 12:12
@narph narph merged commit 753255a into elastic:7.x Mar 24, 2020
@narph narph deleted the backport_16215_7.x branch March 24, 2020 12:22
@narph narph added v7.7.0 and removed v7.7.0 labels Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Integrations Label for the Integrations team Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants