diff --git a/src/main/java/com/actiontech/dble/services/manager/response/DryRun.java b/src/main/java/com/actiontech/dble/services/manager/response/DryRun.java index 5ee1cc191..9a1010a11 100644 --- a/src/main/java/com/actiontech/dble/services/manager/response/DryRun.java +++ b/src/main/java/com/actiontech/dble/services/manager/response/DryRun.java @@ -250,7 +250,11 @@ public final class DryRun { } } if (!hasShardingUser) { - list.add(new ErrorInfo("Xml", "WARNING", "There is No Sharding User")); + if (serverConfig.getSchemas().size() > 0) { + list.add(new ErrorInfo("Xml", "WARNING", "There is No Sharding User")); + } else { + list.add(new ErrorInfo("Xml", "NOTICE", "There is No Sharding User")); + } } else if (schema.size() <= serverConfig.getSchemas().size()) { for (String schemaName : serverConfig.getSchemas().keySet()) { if (!schema.contains(schemaName)) { @@ -260,7 +264,11 @@ public final class DryRun { } if (!hasRWSplitUser) { - list.add(new ErrorInfo("Xml", "WARNING", "There is No RWSplit User")); + if (serverConfig.getSchemas().size() == 0) { + list.add(new ErrorInfo("Xml", "WARNING", "There is No RWSplit User")); + } else { + list.add(new ErrorInfo("Xml", "NOTICE", "There is No RWSplit User")); + } } if (!hasManagerUser) {