浏览代码

HUE-3677 [impala] Check handle state before attempting download

Jenny Kim 9 年之前
父节点
当前提交
d6cbec4
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      desktop/libs/notebook/src/notebook/connectors/hiveserver2.py

+ 2 - 0
desktop/libs/notebook/src/notebook/connectors/hiveserver2.py

@@ -295,6 +295,8 @@ class HS2Api(Api):
     try:
       db = self._get_db(snippet)
       handle = self._get_handle(snippet)
+      # Test handle to verify still valid
+      db.get_state(handle)
       return data_export.download(handle, format, db)
     except Exception, e:
       LOG.exception('error downloading notebook')