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

[azeventhubs] Fixing a bug where a cancelled recovery could result in a perpetually broken client #23337

Merged
merged 4 commits into from
Aug 15, 2024

Conversation

richardpark-msft
Copy link
Member

@richardpark-msft richardpark-msft commented Aug 15, 2024

Fixing a customer issue where they cancel in the middle of our retry loop and prevent our recovery from happening.

This simplifies the overall logic and should be just fine - some of the cases it was trying to handle aren't needed anymore because of changes in the recovery code, etc...

Also, updated stress tests to include pipefail, which makes sure that, if the underlying test fails, the script exits instead of potentially reporting okay because tee happened to work :) Also, the stress tests were incorrectly using the test credential, and we can't/don't use that in stress testing.

Fixes #23282

Richard Park added 3 commits August 15, 2024 10:31
…loop and prevent our recovery from happening.

This simplifies the overall logic and should be just fine - some of the cases it was trying to handle were mostly related to idleness, and trying to move the bulk of the failures _before_ the `fn` callback, but this should be more or less equivalent while also handling the error immediately. I've got a couple of tests to ensure that some of the important bits are there (partial failure still leads to link recovery).

Also, updated stress tests to include pipefail, which makes sure that, if the underlying test fails, the script _exits_ instead of potentially reporting okay because `tee` happened to work :) Also, the stress tests were incorrectly using the test credential, and we can't/don't use that in stress testing.
…l function, instead of the interface function.
@richardpark-msft richardpark-msft marked this pull request as ready for review August 15, 2024 17:46
@richardpark-msft
Copy link
Member Author

/azp run go - azeventhubs

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@richardpark-msft richardpark-msft merged commit bbad005 into Azure:main Aug 15, 2024
31 checks passed
@richardpark-msft richardpark-msft deleted the eh-odd-retry-attempts branch August 15, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Event Hub] Event Hub consumer stuck on retry loop
2 participants