This is an automated email from the ASF dual-hosted git repository.

joemcdonnell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit 0cb256ba492585d665f069e4196d1b1905e47895
Author: zhangyifan27 <[email protected]>
AuthorDate: Tue Aug 13 20:53:16 2024 +0800

    IMPALA-13207: Update error message for operations on blacklist dbs
    
    Some errors might happen due to inconsistent setting between impalad
    and catalogd of two flags, blacklisted_dbs and enable_workload_mgmt.
    This patch updated the corresponding error message.
    
    Change-Id: Ibf5586c4134f407afea035dfc44c0883245bbb4e
    Reviewed-on: http://gerrit.cloudera.org:8080/21664
    Reviewed-by: Impala Public Jenkins <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java 
b/fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
index 620e739f0..c7de42284 100644
--- a/fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
+++ b/fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
@@ -347,7 +347,8 @@ public class CatalogOpExecutor {
   // Error string for inconsistent blacklisted dbs/tables configs between 
catalogd and
   // coordinators.
   private final static String BLACKLISTED_DBS_INCONSISTENT_ERR_STR =
-      "--blacklisted_dbs may be inconsistent between catalogd and 
coordinators";
+      "--blacklisted_dbs or --enable_workload_mgmt may be inconsistent between 
"
+          + "catalogd and coordinators";
   private final static String BLACKLISTED_TABLES_INCONSISTENT_ERR_STR =
       "--blacklisted_tables may be inconsistent between catalogd and 
coordinators";
   private final static String ALTER_TBL_UNSET_NON_EXIST_PROPERTY =
@@ -1191,7 +1192,7 @@ public class CatalogOpExecutor {
           params.getRename_params().getNew_table_name());
       Preconditions.checkState(!catalog_.isBlacklistedTable(newTableName),
           String.format("Can't rename to blacklisted table name: %s. %s", 
newTableName,
-              BLACKLISTED_DBS_INCONSISTENT_ERR_STR));
+              BLACKLISTED_TABLES_INCONSISTENT_ERR_STR));
     }
     tryWriteLock(tbl, catalogTimeline);
     // get table's catalogVersion before altering it

Reply via email to