Skip to content

Commit 1060245

Browse files
committed
fix rescheduling case
Signed-off-by: Derek Riley <derek.riley@swirldslabs.com>
1 parent 4278599 commit 1060245

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

hedera-node/hedera-app/src/main/java/com/hedera/node/app/blocks/impl/streaming/BlockNodeConnectionManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ public void run() {
794794
logger.debug("{} Failed to establish connection to block node. Will schedule a retry.", connection);
795795
blockStreamMetrics.recordConnectionCreateFailure();
796796
reschedule();
797+
selectNewBlockNodeForStreaming(false);
797798
}
798799
}
799800

hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/blocknode/BlockNodeSuite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ final Stream<DynamicTest> node0StreamingBlockNodeConnectionDropsTrickle() {
440440
"/localhost:%s/CLOSED] Connection state transitioned from CLOSING to CLOSED.",
441441
portNumbers.get(3)))),
442442
doingContextual(spec -> connectionDropTime.set(Instant.now())),
443-
blockNode(3).startImmediately(), // Pri 3
443+
waitUntilNextBlocks(5),
444444
blockNode(1).shutDownImmediately(), // Pri 1
445445
sourcingContextual(spec -> assertBlockNodeCommsLogContainsTimeframe(
446446
byNodeId(0),

0 commit comments

Comments
 (0)