Should retry looking for coordinator Returns true when the test Kafka broker is still setting up.
(resp *FindCoordinatorResponse, err error)
| 75 | // Should retry looking for coordinator |
| 76 | // Returns true when the test Kafka broker is still setting up. |
| 77 | func shouldRetryfindingCoordinator(resp *FindCoordinatorResponse, err error) bool { |
| 78 | brokerSetupIncomplete := err != nil && |
| 79 | strings.Contains( |
| 80 | strings.ToLower(err.Error()), |
| 81 | strings.ToLower("unexpected EOF")) |
| 82 | coordinatorNotFound := resp != nil && |
| 83 | resp.Error != nil && |
| 84 | errors.Is(resp.Error, GroupCoordinatorNotAvailable) |
| 85 | return brokerSetupIncomplete || coordinatorNotFound |
| 86 | } |
no test coverage detected
searching dependent graphs…