Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,6 @@ void testKvSnapshotLeaseAfterCoordinatorServerRestart() throws Exception {
assertThat(zkClient.getKvSnapshotLeaseMetadata(lease.leaseId())).isPresent();

restartCoordinatorServer(zkClient);
FLUSS_CLUSTER_EXTENSION.waitUntilAllGatewayHasSameMetadata();

lease.dropLease().get();
assertThat(zkClient.getKvSnapshotLeaseMetadata(lease.leaseId())).isNotPresent();
Expand All @@ -1278,6 +1277,9 @@ private void restartCoordinatorServer(ZooKeeperClient zkClient) throws Exception
Duration.ofMinutes(1),
"Coordinator server node still exists in ZooKeeper");
FLUSS_CLUSTER_EXTENSION.startCoordinatorServer();
// The client retries once after a metadata refresh, which can be served by a tablet
// server that has not learned the new coordinator address yet, so wait for convergence.
FLUSS_CLUSTER_EXTENSION.waitUntilAllGatewayHasSameMetadata();
}

@Test
Expand Down
Loading