Skip to content

Commit

Permalink
reverting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JobseRyan committed Sep 26, 2024
1 parent 09bd21b commit 32c97b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ public Node leastLoadedNode(long now) {
}

if (newNodes.size() == 0) {
// return null;
return null;
}

int offset = this.randOffset.nextInt(newNodes.size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,6 @@ public void testThrottlingNotEnabledForConnectionToOlderBroker() {
assertEquals(0, client.throttleDelayMs(node, time.milliseconds()));
}

/*
@Test
public void noLeastLoadedNode() {
NetworkClient nc = new NetworkClient(selector, metadataUpdater, "mock", Integer.MAX_VALUE,
Expand All @@ -643,7 +642,7 @@ public void noLeastLoadedNode() {

assertEquals(null, nc.leastLoadedNode(time.milliseconds()));
}
*/

private int sendEmptyProduceRequest() {
return sendEmptyProduceRequest(node.idString());
}
Expand Down

0 comments on commit 32c97b0

Please sign in to comment.