Explorar o código

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

Romain Rigaux %!s(int64=7) %!d(string=hai) anos
pai
achega
b11ae2c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: