go test -run TestClientUpdateMetadataErrorAndRetry -count 1000
I believe the issue is due to changes in #2256. It is possible to hit the return nilhere and have the concurrent RefreshMetadata that caused the code to reach this line fail. In fact, even if you close the seedBroker (so the refresh must fail) the call can return nil due to this logic/race issue.
Versions
Problem Description
I get occasional failures running:
I believe the issue is due to changes in #2256. It is possible to hit the
return nil
here and have the concurrent RefreshMetadata that caused the code to reach this line fail. In fact, even if you close the seedBroker (so the refresh must fail) the call can return nil due to this logic/race issue.