Repository navigation
Closed
Milestone
Description
Just setup master (4dc1ab0a5ead610b2f90aece3454a0deb5b76c5a)
Run smashbox test_basicSync:
± % bin/smash -a lib/test_basicSync.py !10205
SUMMARY:smash.:runid: 150914-213433
SUMMARY:smash.:URL: http://test:***@127.0.0.1/owncloud/remote.php/webdav/
SUMMARY:smash.:Running iteration 1
SUMMARY:smash.:running lib/test_basicSync.py in /home/vincent/work/smashdir/test_basicSync as test testset #0 {'basicSync_filesizeKB': 1, 'basicSync_rmLocalStateDB': False}
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
md5sum: /home/vincent/work/smashdir/test_basicSync/loser/TEST_FILE_MODIFIED_WINNER.datmd5sum: /home/vincent/work/smashdir/test_basicSync/checker/TEST_FILE_MODIFIED_WINNER.dat: No such file or directory
: No such file or directory
2015-09-14 21:34:50,688 - ERROR - checker - inconsistent md5 of /home/vincent/work/smashdir/test_basicSync/checker/TEST_FILE_MODIFIED_WINNER.dat: expected cac0c3f51680222f14025641074e35fa, got NO_CHECKSUM_ERROR error_check(actual_md5 == md5, "inconsistent md5 of %s: expected %s, got %s"%(fn,md5,actual_md5)) failed in expect_content() ["/home/vincent/work/workspace/smashbox/lib/test_basicSync.py" at line 61]
2015-09-14 21:34:50,694 - ERROR - loser - inconsistent md5 of /home/vincent/work/smashdir/test_basicSync/loser/TEST_FILE_MODIFIED_WINNER.dat: expected cac0c3f51680222f14025641074e35fa, got NO_CHECKSUM_ERROR error_check(actual_md5 == md5, "inconsistent md5 of %s: expected %s, got %s"%(fn,md5,actual_md5)) failed in expect_content() ["/home/vincent/work/workspace/smashbox/lib/test_basicSync.py" at line 61]
2015-09-14 21:34:50,703 - ERROR - creator - inconsistent md5 of /home/vincent/work/smashdir/test_basicSync/creator/TEST_FILE_MODIFIED_WINNER.dat: expected cac0c3f51680222f14025641074e35fa, got 88bb69a5d5e02ec7af5f68d82feb1f1d error_check(actual_md5 == md5, "inconsistent md5 of %s: expected %s, got %s"%(fn,md5,actual_md5)) failed in expect_content() ["/home/vincent/work/workspace/smashbox/lib/test_basicSync.py" at line 61]
2015-09-14 21:34:51,687 - ERROR - loser - 1 error(s) reported
2015-09-14 21:34:51,689 - ERROR - creator - 1 error(s) reported
2015-09-14 21:34:51,689 - ERROR - checker - 1 error(s) reported
CRITICAL:smash.:Aborting run -- non-zero exit code (2)
Anyone fancies a bisect ?
Activity
DeepDiver1975 commentedon Sep 14, 2015
not only basic sync:
https://ci.owncloud.org/job/smashbox-on-docker-daily-master/
PVince81 commentedon Sep 14, 2015
Argh.
I'm already bisecting test_basicSync now.
PVince81 commentedon Sep 15, 2015
The bisect pointed to this commit that enables transactional locking by default: #18777
Possibly related to the DB-based locking.
More to try:
PVince81 commentedon Sep 15, 2015
Setting to critical as it's a regression and affects syncing consistency.
@icewind1991 can you have a look ?
PVince81 commentedon Sep 15, 2015
Also fails with redis, so it's a general issue with locking.
nickvergessen commentedon Sep 15, 2015
basicSync is always the worst test to use for debugging because it does everything in one step.
I can take this over
PVince81 commentedon Sep 15, 2015
Feel free to take over this and dig deeper. The bisect is done and it's a locking issue.
nickvergessen commentedon Sep 15, 2015
Tested the failing stuff locally with DB locking:
icewind1991 commentedon Sep 15, 2015
I dont get any error while running smashbox, but it seems to freeze after a while, it doesn't seem to do any file operation from what I can tell from the lock log but I can see a few php-fpm processes with high cpu usage
DeepDiver1975 commentedon Sep 15, 2015
timeout in the fpm setup???
icewind1991 commentedon Sep 15, 2015
Looking at the db it seems that locks are still being modified but without going trough the storage layer (where my log works)
nickvergessen commentedon Sep 15, 2015
well it's syncing
It's also not getting stuck here. The tests just take some time because they transfer GBs of Data
icewind1991 commentedon Sep 15, 2015
If it as transfering a lot of files it would show that in the lock log and if it was a single big file it wouldn't be changing locks.
Also it seems to be getting stuck no matter which tests I run, I don't remember
sharePermissionstaking a lot of timenickvergessen commentedon Sep 15, 2015
sharePermissions passes here, as per above. Only basicSync and uploadFiles fail
PVince81 commentedon Sep 16, 2015
I travelled far back in time and saw that it also fails on v8.1.1 with locking enabled (redis).
v8.1.0 seems to pass.
PVince81 commentedon Sep 16, 2015
False alarm, forgot to enable php5-redis ...
I'll redo the bisect with redis locking enabled.
PVince81 commentedon Sep 16, 2015
And here we go:
This is the breaking commit: d979e54.
It comes from the DB locking PR: #17662
Note: sometimes you need to run the smashbox test several times to make it fail...
PVince81 commentedon Sep 16, 2015
Hmmm, but I was testing with redis locking. That doesn't make sense, as the commit is for DB locking.
icewind1991 commentedon Sep 16, 2015
#19098 fixes the problem with db locking for me
PVince81 commentedon Sep 16, 2015
@icewind1991 pointed out that there was a bug where DB locking was always used even when redis was selected... so this invalidates what I observed in the bisect.
I'll check out that PR.
PVince81 commentedon Sep 22, 2015
Fixed by #19098