presto-spi/src/main/java/io/prestosql/spi/NodeManager.java/NodeManager/getRequiredWorkerNodes
class NodeManager:    default Set<Node> getRequiredWorkerNodes()
    {
        Set<Node> nodes = getWorkerNodes();
        if (nodes.isEmpty()) {
            throw new PrestoException(NO_NODES_AVAILABLE, "No nodes available to run query");
        }
        return nodes;
    }