{"record":{"id":"e1878c563a7bedb0","repo":"apache/seatunnel","slug":"list-databases-failed-e1878c","errorCode":null,"errorMessage":"list databases failed","messagePattern":"list databases failed","errorType":"exception","errorClass":"CatalogException","httpStatus":null,"severity":"error","filePath":"seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/catalog/DorisCatalog.java","lineNumber":201,"sourceCode":"            try (ResultSet rs = ps.executeQuery()) {\n                return rs.next();\n            }\n        } catch (SQLException e) {\n            throw new CatalogException(\"check database exists failed\", e);\n        }\n    }\n\n    @Override\n    public List<String> listDatabases() throws CatalogException {\n        List<String> databases = new ArrayList<>();\n        try (PreparedStatement ps = conn.prepareStatement(DorisCatalogUtil.ALL_DATABASES_QUERY);\n                ResultSet rs = ps.executeQuery()) {\n            while (rs.next()) {\n                String database = rs.getString(1);\n                databases.add(database);\n            }\n        } catch (SQLException e) {\n            throw new CatalogException(\"list databases failed\", e);\n        }\n        Collections.sort(databases);\n        return databases;\n    }\n\n    @Override\n    public List<String> listTables(String databaseName)\n            throws CatalogException, DatabaseNotExistException {\n        List<String> tables = new ArrayList<>();\n        try (PreparedStatement ps =\n                conn.prepareStatement(DorisCatalogUtil.TABLES_QUERY_WITH_DATABASE_QUERY)) {\n            ps.setString(1, databaseName);\n            try (ResultSet rs = ps.executeQuery()) {\n                while (rs.next()) {\n                    String table = rs.getString(1);\n                    tables.add(table);\n                }\n            }","sourceCodeStart":183,"sourceCodeEnd":219,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/catalog/DorisCatalog.java#L183-L219","documentation":"DorisCatalog.listDatabases wraps SQLException from the all-databases query into CatalogException('list databases failed'); metadata listing could not be completed, usually due to connection or permission problems rather than an empty cluster.","triggerScenarios":"Thrown at seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/catalog/DorisCatalog.java:201 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the JDBC connection is alive and the FE is healthy","Grant the configured user privileges to see databases","Retry after transient network failures"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"cf67b549a7a6c35fa0beb12d83c62892427ea919","analyzedAt":"2026-09-10T21:44:55.265Z","contentChangedAt":"2026-09-10T21:44:55.265Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}