{"record":{"id":"0bf3ede041f12a66","repo":"apache/seatunnel","slug":"drop-database-s-failed","errorCode":null,"errorMessage":"drop database [%s] failed","messagePattern":"drop database \\[(.+?)\\] 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":458,"sourceCode":"                        tablePath.getDatabaseName(), ignoreIfExists);\n        try (Statement stmt = conn.createStatement()) {\n            stmt.execute(query);\n        } catch (SQLException e) {\n            throw new CatalogException(\n                    String.format(\"create database [%s] failed\", tablePath.getDatabaseName()), e);\n        }\n    }\n\n    @Override\n    public void dropDatabase(TablePath tablePath, boolean ignoreIfNotExists)\n            throws DatabaseNotExistException, CatalogException {\n        String query =\n                DorisCatalogUtil.getDropDatabaseQuery(\n                        tablePath.getDatabaseName(), ignoreIfNotExists);\n        try (Statement stmt = conn.createStatement()) {\n            stmt.execute(query);\n        } catch (SQLException e) {\n            throw new CatalogException(\n                    String.format(\"drop database [%s] failed\", tablePath.getDatabaseName()), e);\n        }\n    }\n\n    private Map<String, String> connectorOptions() {\n        Map<String, String> options = new HashMap<>();\n        options.put(\"connector\", \"doris\");\n        options.put(DorisBaseOptions.FENODES.key(), String.join(\",\", frontEndNodes));\n        options.put(DorisBaseOptions.USERNAME.key(), username);\n        options.put(DorisBaseOptions.PASSWORD.key(), password);\n        return options;\n    }\n\n    public void truncateTable(TablePath tablePath, boolean ignoreIfNotExists)\n            throws TableNotExistException, CatalogException {\n        truncateTable(tablePath, ignoreIfNotExists, Collections.emptyList());\n    }\n","sourceCodeStart":440,"sourceCodeEnd":476,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/catalog/DorisCatalog.java#L440-L476","documentation":"Raised by DorisCatalog.dropDatabase when executing the DROP DATABASE DDL fails with a SQLException. The wrapped exception carries the actual Doris server error; the message names the database whose drop failed.","triggerScenarios":"Thrown at seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/catalog/DorisCatalog.java:458 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm the Doris FE connection is alive and credentials are valid","Ensure the database is empty or that dropping non-empty databases is permitted","Read the cause SQLException for the specific Doris error and address it"],"exampleFix":null,"handlingStrategy":"try-catch","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"}