PartitionState partitionState = partitionStates[partition.partition()];
switch (partitionState)
{
- case RESTORING, ASSIGNED:
- stateUnassigned(partition.partition());
- break;
- default:
- case UNASSIGNED:
- log.warn("{} - partition {} in state {} was revoked!", id, partition, partitionState);
+ case RESTORING, ASSIGNED -> stateUnassigned(partition.partition());
+ case UNASSIGNED -> log.warn("{} - partition {} in state {} was revoked!", id, partition, partitionState);
}
}
});