Search in sources :

Example 1 with PartitionStatus

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();
}
Also used : PartitionStatus(io.camunda.zeebe.broker.system.management.PartitionStatus)

Example 2 with PartitionStatus

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();
}
Also used : PartitionStatus(io.camunda.zeebe.broker.system.management.PartitionStatus)

Example 3 with PartitionStatus

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();
}
Also used : PartitionStatus(io.camunda.zeebe.broker.system.management.PartitionStatus)

Aggregations

PartitionStatus (io.camunda.zeebe.broker.system.management.PartitionStatus)3