File tree 2 files changed +13
-6
lines changed
main/java/org/apache/kafka/clients/consumer/internals
test/java/org/apache/kafka/clients/consumer/internals
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,22 @@ public class FetchRequestManager extends AbstractFetch implements RequestManager
55
55
this .networkClientDelegate = networkClientDelegate ;
56
56
}
57
57
58
+ /**
59
+ * Node's availability will be checked at a later stage, so we default to return false;
60
+ * @param node {@link Node} to check for availability
61
+ * @return
62
+ */
58
63
@ Override
59
64
protected boolean isUnavailable (Node node ) {
60
- return networkClientDelegate . isUnavailable ( node ) ;
65
+ return false ;
61
66
}
62
67
68
+ /**
69
+ * Authentication failure will be checked at a later stage, so we do nothing here
70
+ * @param node {@link Node} to check for a previous {@link AuthenticationException}; if found it is thrown
71
+ */
63
72
@ Override
64
- protected void maybeThrowAuthFailure (Node node ) {
65
- networkClientDelegate .maybeThrowAuthFailure (node );
66
- }
73
+ protected void maybeThrowAuthFailure (Node node ) {}
67
74
68
75
/**
69
76
* {@inheritDoc}
Original file line number Diff line number Diff line change @@ -781,10 +781,10 @@ public void testFetchSkipsBlackedOutNodes() {
781
781
Node node = initialUpdateResponse .brokers ().iterator ().next ();
782
782
783
783
client .backoff (node , 500 );
784
- assertEquals (0 , sendFetches ());
784
+ assertEquals (1 , sendFetches ());
785
785
786
786
time .sleep (500 );
787
- assertEquals (1 , sendFetches ());
787
+ assertEquals (0 , sendFetches ());
788
788
}
789
789
790
790
@ Test
You can’t perform that action at this time.
0 commit comments