use of io.camunda.zeebe.broker.system.management.PartitionStatus in project zeebe by camunda.
the class BrokerSnapshotTest method waitForSnapshotAtBroker.
private SnapshotId waitForSnapshotAtBroker(final BrokerAdminService adminService, final int partitionId) {
Awaitility.await().pollInterval(1, TimeUnit.SECONDS).untilAsserted(() -> assertThat(adminService.getPartitionStatus().get(partitionId).getProcessedPositionInSnapshot()).isNotNull());
final PartitionStatus partitionStatus = brokerAdminService.getPartitionStatus().get(1);
return FileBasedSnapshotMetadata.ofFileName(partitionStatus.getSnapshotId()).get();
}
use of io.camunda.zeebe.broker.system.management.PartitionStatus in project zeebe by zeebe-io.
the class BrokerSnapshotTest method waitForSnapshotAtBroker.
private SnapshotId waitForSnapshotAtBroker(final BrokerAdminService adminService, final int partitionId) {
Awaitility.await().pollInterval(1, TimeUnit.SECONDS).untilAsserted(() -> assertThat(adminService.getPartitionStatus().get(partitionId).getProcessedPositionInSnapshot()).isNotNull());
final PartitionStatus partitionStatus = brokerAdminService.getPartitionStatus().get(1);
return FileBasedSnapshotMetadata.ofFileName(partitionStatus.getSnapshotId()).get();
}
use of io.camunda.zeebe.broker.system.management.PartitionStatus in project zeebe by camunda-cloud.
the class BrokerSnapshotTest method waitForSnapshotAtBroker.
private SnapshotId waitForSnapshotAtBroker(final BrokerAdminService adminService, final int partitionId) {
Awaitility.await().pollInterval(1, TimeUnit.SECONDS).untilAsserted(() -> assertThat(adminService.getPartitionStatus().get(partitionId).getProcessedPositionInSnapshot()).isNotNull());
final PartitionStatus partitionStatus = brokerAdminService.getPartitionStatus().get(1);
return FileBasedSnapshotMetadata.ofFileName(partitionStatus.getSnapshotId()).get();
}
Aggregations