-
Notifications
You must be signed in to change notification settings - Fork 231
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
Some tests fail due to test timing issues when using -count=100 / 1000 #25
Comments
I've seen this a few times:
On my RHEL and macOS systems (both x86_64), I added the |
I believe all but one of these are addressed in #36. |
On further investigation, there are two categories of test failure that are still happening here after #36. First, there are tests that use Second, there are tests that read atomic variables without using an |
Which one do you feel is not addressed? If we can isolate any remaining issues it would be good to split them into a new ticket and close this one. |
Sure! I ran overnight testing and was able to reproduce a few test failures. Every failure I looked into, however, just appeared to be a minor issue in the test, not a problem in the code. I will be glad to file new, specific issues and close this. |
Here's the most frequent one:
If you repeat this test enough, the Resend backoff test will fail, resulting in two packets being sent. The test uses second-precision and a sleep of 1ms, so there's a small probability of sleeping so that We can rename this issue to capture correcting all "flaky" tests related to rare timing events and keep working on them. In any case, I run |
This appears fixed in |
I am still seeing the TestServerResendClientInflightBackoff issue |
Fixed in v1.3.0 due to a timing issue between writing and reading the err message from the close err atomic. |
As per @rkennedy's comments in #24, various tests fail intermittently and typically exhibit when running
go test ./... -count=100
. Backtesting indicates these failures occur at least as early as v1.0.5. The failures can occur as few as 1 in every 500 runs. This is likely to be a problem with the tests rather than a problem with the broker code.Determine the precise cause for these intermittent failures and correct it.
After running
go test ./... -count=100
several times, the known failures are as follows:Please add any others to this issue if you see them.
The text was updated successfully, but these errors were encountered: