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 @@ -1175,7 +1175,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 @@ -1188,6 +1187,10 @@ private void restartCoordinatorServer(ZooKeeperClient zkClient) throws Exception
Duration.ofMinutes(1),
"Coordinator server node still exists in ZooKeeper");
FLUSS_CLUSTER_EXTENSION.startCoordinatorServer();
// The retryable gateway proxy refreshes metadata from a tablet server and retries only
// once, so wait until the tablet servers have learned the new coordinator address before
// issuing the next lease request; the client itself still holds the stale address.
FLUSS_CLUSTER_EXTENSION.waitUntilAllGatewayHasSameMetadata();
}

@Test
Expand Down