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

[Event Hubs Client] Fix Flaky Processor Test #21441

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

jsquire
Copy link
Member

@jsquire jsquire commented May 28, 2021

Summary

The focus of these changes is to fix a flaky test resulting from a change introduced by #21242 that caused a race condition in the test. This fix removes the assumption that a transport consumer is non-null and closes conditionally.

References and Related

@jsquire jsquire added Event Hubs Client This issue points to a problem in the data-plane of the library. test-reliability Issue that causes tests to be unreliable labels May 28, 2021
@jsquire jsquire added this to the [2021] June milestone May 28, 2021
@jsquire jsquire self-assigned this May 28, 2021
@pakrym
Copy link
Contributor

pakrym commented Jun 1, 2021

Should we instead fix the test not to return null from CreateConsumer? Does any of the production implementation return null?

@jsquire
Copy link
Member Author

jsquire commented Jun 1, 2021

Should we instead fix the test not to return null from CreateConsumer? Does any of the production implementation return null?

It's a fair point; we don't have anything in production code paths that should be null, but we do have a bunch in tests. I should stop being lazy and find them.

@jsquire jsquire force-pushed the eventhubs/flaky-test branch from a08f07f to f9550a6 Compare June 1, 2021 17:33
The focus of these changes is to fix a flaky test resulting from a
recent change to the sequence of events when an event processor is closed.
@jsquire jsquire force-pushed the eventhubs/flaky-test branch from f9550a6 to 1abe1da Compare June 1, 2021 18:22
@jsquire jsquire merged commit 5890f31 into Azure:master Jun 1, 2021
@jsquire jsquire deleted the eventhubs/flaky-test branch June 1, 2021 18:43
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-net that referenced this pull request Dec 16, 2022
[Hub Generated] Review request for Microsoft.DataProtection to add version preview/2022-11-01-preview (Azure#21441)

* Adds base for updating Microsoft.DataProtection from version preview/2022-10-01-preview to version 2022-11-01-preview

* Updates readme

* Updates API version in new specs and examples

* Added API changes for Blob Backup

* Updated class descriptions based on the feedback

* Fixing spellcheck errors

* Removing "timedout" from custom-words.txt and adding to cSpell.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Event Hubs test-reliability Issue that causes tests to be unreliable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants