{
log.info("{} - Adding partition {}", id, partition);
assignedPartitions.add(partition);
-
- phaser.register();
- log.info(
- "{} - Registered new party for restored assigned partition {}. New total number of parties: {}",
- id,
- partition,
- phaser.getRegisteredParties());
-
- log.info(
- "{} - Changing partition-state for {}: {} -> RESTORING",
- id,
- partition,
- partitionStates[partition.partition()]);
- partitionStates[partition.partition()] = PartitionState.RESTORING;
+ stateRestoring(partition.partition());
}
else
{
});
}
+ private void stateRestoring(int partition)
+ {
+ log.info(
+ "{} - Changing partition-state for {}: {} -> RESTORING",
+ id,
+ partition,
+ partitionStates[partition]);
+ partitionStates[partition] = PartitionState.RESTORING;
+
+ phaser.register();
+ log.info(
+ "{} - Registered new party for newly assigned partition {}. New total number of parties: {}",
+ id,
+ partition,
+ phaser.getRegisteredParties());
+ }
+
private void stateAssigned(int partition)
{
log.info(