Flaky Test: RingHash_SwitchToLowerPriorityAndThenBack #7783
Labels
Area: Testing
Includes tests and testing utilities that we have for unit and e2e tests within our repo.
Type: Bug
We haven't see this so far on GitHub Actions, but it seems like this might be a bug in the code rather than in the test.
Full test log here: https://pastebin.com/u2v2JshT
The problem seems to be as follows:
The test passes. But there is a leaked goroutine. Basically, the child of priority1, which is outlier detection is not closed. And the child of outlier detection, which is clusterimpl is not closed either.
I believe the problem arises because when priority1 is closed, it is moved to the idle cache in the balancergroup, but when the priority LB is closed soon after, for some reason, the child in the idle cache is not being cleaned up.
This failure happens about 2 times out of 100k, but I feel it is worth investigating.
The text was updated successfully, but these errors were encountered: