diff options
author | drebs <drebs@leap.se> | 2017-04-19 10:43:59 +0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-04-19 11:49:42 +0200 |
commit | a052c150ae1276f643e3b6e049e45571fe1a7b70 (patch) | |
tree | da5ce12b797980e7f45c85dc3038168a535b9def /client/src/leap | |
parent | 40f2cb8b1f07b1346e01ff69b57e14c492f1cd0b (diff) |
[test] tune parameters for asynchronous sqlcipher access
When hundreds of concurrent document creations are spawned during tests,
test runs in slower machines may fail with "db is locked" error.
Increasing the timeout and number of retries in the sqlcipher adbapi
level may help avoiding that.
Diffstat (limited to 'client/src/leap')
-rw-r--r-- | client/src/leap/soledad/client/adbapi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/leap/soledad/client/adbapi.py b/client/src/leap/soledad/client/adbapi.py index 2bc146bd..a60970c0 100644 --- a/client/src/leap/soledad/client/adbapi.py +++ b/client/src/leap/soledad/client/adbapi.py @@ -45,12 +45,12 @@ logger = getLogger(__name__) How long the SQLCipher connection should wait for the lock to go away until raising an exception. """ -SQLCIPHER_CONNECTION_TIMEOUT = 5 +SQLCIPHER_CONNECTION_TIMEOUT = 10 """ How many times a SQLCipher query should be retried in case of timeout. """ -SQLCIPHER_MAX_RETRIES = 10 +SQLCIPHER_MAX_RETRIES = 20 def getConnectionPool(opts, openfun=None, driver="pysqlcipher"): |