{"record":{"id":"0adc1140ab729cbb","repo":"apache/dolphinscheduler","slug":"1200027","errorCode":"1200027","errorMessage":"not found cluster [{0}] ","messagePattern":"not found cluster \\[(.+?)\\] ","errorType":"error_code","errorClass":"ServiceException","httpStatus":null,"severity":"error","filePath":"dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ClusterServiceImpl.java","lineNumber":177,"sourceCode":"                .map(cluster -> {\n                    ClusterDto dto = new ClusterDto();\n                    // todo: Don't use copy\n                    BeanUtils.copyProperties(cluster, dto);\n                    return dto;\n                }).collect(Collectors.toList());\n    }\n\n    /**\n     * query cluster\n     *\n     * @param name cluster name\n     */\n    @Override\n    public ClusterDto queryClusterByName(String name) {\n\n        Cluster cluster = clusterDao.queryByClusterName(name);\n        if (cluster == null) {\n            throw new ServiceException(Status.QUERY_CLUSTER_BY_NAME_ERROR, name);\n        }\n        ClusterDto dto = new ClusterDto();\n        BeanUtils.copyProperties(cluster, dto);\n        return dto;\n    }\n\n    /**\n     * delete cluster\n     *\n     * @param loginUser login user\n     * @param code      cluster code\n     */\n    @Override\n    public void deleteClusterByCode(User loginUser, Long code) {\n        if (isNotAdmin(loginUser)) {\n            throw new ServiceException(Status.USER_NO_OPERATION_PERM);\n        }\n","sourceCodeStart":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/apache/dolphinscheduler/blob/02eac45a1b6676e639fcbfb4be2243de5771b05d/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ClusterServiceImpl.java#L159-L195","documentation":"Thrown in queryClusterByName when clusterDao.queryByClusterName returns null: no cluster exists with the requested name. It is an existence guard ensuring callers never receive a null cluster object; the faulting input is the name path parameter.","triggerScenarios":"Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ClusterServiceImpl.java:177 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the cluster name for typos; names are case-sensitive.","List all clusters to find the correct name.","Create the cluster if it does not exist yet."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"02eac45a1b6676e639fcbfb4be2243de5771b05d","analyzedAt":"2026-09-06T17:43:00.555Z","contentChangedAt":"2026-09-06T17:43:00.555Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}