Repository navigation
[WIP] adding configuration option for sqlite timeout - refs #12429 - #13615
DeepDiver1975 wants to merge 1 commit into
Conversation
|
refs #12429 |
|
makes sense 👍 |
|
The inspection completed: No new issues |
|
Refer to this link for build results (access rights to CI server needed): Build result: FAILURE[...truncated 13 lines...] > git config --local --remove-section credential # timeout=10 > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10 > git config remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10 > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Fetching upstream changes from https://github.com/owncloud/core.gitusing GIT_SSH to set credentials using .gitcredentials to set credentials > git config --local credential.helper store --file=/tmp/git8709658071531764995.credentials # timeout=10 > git -c core.askpass=true fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git config --local --remove-section credential # timeout=10 > git rev-parse refs/remotes/origin/pr/13615/merge^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/pr/13615/merge^{commit} # timeout=10Checking out Revision 0c96afdcca6ca6716216b06d3457254a5c4c8893 (refs/remotes/origin/pr/13615/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f 0c96afdcca6ca6716216b06d3457254a5c4c8893First time build. Skipping changelog. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » SLAVEpull-request-analyser-ng-simple » SLAVE completed with result FAILURESetting status of 011f1ff to FAILURE with url https://ci.owncloud.org/job/pull-request-analyser-ng-simple/7757/ and message: Merged build finished.💣 Test FAILed. 💣 |
|
Falling apart: |
|
Will this also go into 7.x? @dragotin and me are a bit worried about the paralleism that the 1.8 client brings.. |
this will even not go into 8.0 - milestone is on 8.1 |
|
sigh |
|
@guruz we even don't know if it really helps to tweak around on the timeout. This has to be properly tested. |
|
I merged this with master (which contains the other sqlite fix for the FS part) and as far as I understand I don't need to add any settings, and the timeout would default to 60 second. And yet the "lastlogin" update from the concurrent auth-ing PROPFINDs from #13705 still locks: Either the timeout value isn't passed properly or SQLite is just being mean. |
|
Am debugging this now. Something suspicious with "driverOptions". |
|
Basically |
|
Ok turns out that PDO attributes are indeed integers. While debugging I have the feeling that we might not be passing the options properly to the PDO driver (still trying to find out where it is actually created through debugging), especially that we pass a connection wrapper which doesn't seem to do anything with these options. |
|
I debugged deep and saw that the parameter was passed properly to the PDO class. And yet still seems to be ignored. |
|
Tried using This means that the setting is indeed set properly but SQLite refuses to behave. |
|
I got news: if SQLite seems to ignore the timeout and throw "Database is locked" directly, first step is to check for any unclosed "SELECT" that is directly followed by an "UPDATE" on the same table. |
|
Developer of the day: @PVince81 |
|
Also thanks @guruz for the psychological support 😉 |
|
My only goal was to prove @DeepDiver1975 wrong. But now you found so many related bugs :D gooood! |
|
Refer to this link for build results (access rights to CI server needed): |




@PVince81 this is how we could configure sqlite timeout
Code segment from PHP where busyTimeout is applied - https://github.com/php/php-src/blob/master/ext/pdo_sqlite/sqlite_driver.c#L303