瀏覽代碼

HUE-4354 [core] Warn than SQLite is the cause of the 'Database locked' error

Romain Rigaux 9 年之前
父節點
當前提交
71064b3
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      desktop/core/src/desktop/conf.py

+ 2 - 1
desktop/core/src/desktop/conf.py

@@ -1198,7 +1198,8 @@ def validate_database():
       except Exception, ex:
       except Exception, ex:
         LOG.exception("Error in config validation of MYSQL_STORAGE_ENGINE: %s", ex)
         LOG.exception("Error in config validation of MYSQL_STORAGE_ENGINE: %s", ex)
   elif 'sqlite' in connection.vendor:
   elif 'sqlite' in connection.vendor:
-    res.append(('SQLITE_NOT_FOR_PRODUCTION_USE', unicode(_('SQLite is only recommended for small development environments with a few users.'))))
+    res.append(('SQLITE_NOT_FOR_PRODUCTION_USE', unicode(_('SQLite is only recommended for development environments. '
+        'It might cause the "Database is locked" error. Migrating to MySQL, Oracle or PostgreSQL is strongly recommended.'))))
   return res
   return res