docs: private boolean isPartitionAssignmentAllowed() {
          if (!node.getNodeExtension().isStartCompleted()) {
              logger.warning("Partitions can't be assigned since startup is not completed yet.");
              return false;
          }
  
          ClusterState clusterState = node.getClusterService().getClusterState();
          if (!clusterState.isMigrationAllowed()) {
              logger.warning("Partitions can't be assigned since cluster-state= " + clusterState);
              return false;
          }
          if (partitionService.isFetchMostRecentPartitionTableTaskRequired()) {
              logger.warning("Partitions can't be assigned since most recent partition table is not decided yet.");
              return false;
          }
          return true;
      }