Jelajahi Sumber

persist_data: increase the SQLite connection timeout

We're seeing OperationalErrors exceptions due to locking in some of the
pysqlite access paths (related to the initial burst of writes) on certain
setups.

This patch increases the sqlite timeout to 30, the same as in BitBake master,
to workaround this issue.

Fixes [YOCTO #1759]

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Joshua Lock 14 tahun lalu
induk
melakukan
4dab699e96
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      bitbake/lib/bb/persist_data.py

+ 1 - 1
bitbake/lib/bb/persist_data.py

@@ -112,7 +112,7 @@ class SQLData(object):
         bb.utils.mkdirhier(os.path.dirname(filename))
 
         self.filename = filename
-        self.connection = sqlite3.connect(filename, timeout=5,
+        self.connection = sqlite3.connect(filename, timeout=30,
                                           isolation_level=None)
         self.cursor = self.connection.cursor()
         self._tables = {}