Sfoglia il codice sorgente

HUE-8524 [impala] Provide the root cause of INVALIDATE METADATA failures

Romain Rigaux 7 anni fa
parent
commit
b11ae2c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      apps/impala/src/impala/dbms.py

+ 1 - 1
apps/impala/src/impala/dbms.py

@@ -104,7 +104,7 @@ class ImpalaDbms(HiveServer2Dbms):
       # Allow timeout exceptions to propagate
       raise e
     except Exception, e:
-      msg = 'Failed to invalidate `%s`' % database
+      msg = 'Failed to invalidate `%s`: %s' % (database or 'databases', e)
       raise QueryServerException(msg)
     finally:
       if handle: