-
Notifications
You must be signed in to change notification settings - Fork 14.3k
KAFKA-15556: Remove NetworkClientDelegate methods isUnavailable, maybeThrowAuthFailure, and tryConnect #15020
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
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -781,10 +781,10 @@ public void testFetchSkipsBlackedOutNodes() { | |
Node node = initialUpdateResponse.brokers().iterator().next(); | ||
|
||
client.backoff(node, 500); | ||
assertEquals(0, sendFetches()); | ||
assertEquals(1, sendFetches()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are you changing the tests? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we're not checking the node availablity using the networkClientDelegate in FetchRequestManager, the request that was made would pass through the check and made it way to unsentRequest. After the backoff the request should be sent already. Should I not change the test and make new one instead? |
||
|
||
time.sleep(500); | ||
assertEquals(1, sendFetches()); | ||
assertEquals(0, sendFetches()); | ||
} | ||
|
||
@Test | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does seem a bit like half a refactor. Would it be possible to remove
isUnavailable
andmaybeThrowAuthFailure
entirely fromAbstractFetch
?