Skip to content

Smashbox test_basicSync failing on master #19031

Closed

Description

@PVince81

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 ?

@nickvergessen @DeepDiver1975 @icewind1991

Activity

  1. added this to the milestone on Sep 14, 2015
  2. PVince81 commented on Sep 14, 2015

    @PVince81
    ContributorAuthor

    Argh.

    I'm already bisecting test_basicSync now.

  3. PVince81 commented on Sep 15, 2015

    @PVince81
    ContributorAuthor

    The bisect pointed to this commit that enables transactional locking by default: #18777
    Possibly related to the DB-based locking.

    More to try:

    • try smashbox test with locking disabled on master => test_basicSync passes!
    • try smashbox with redis instead of DB
  4. PVince81 commented on Sep 15, 2015

    @PVince81
    ContributorAuthor

    Setting to critical as it's a regression and affects syncing consistency.

    @icewind1991 can you have a look ?

  5. PVince81 commented on Sep 15, 2015

    @PVince81
    ContributorAuthor

    Also fails with redis, so it's a general issue with locking.

  6. nickvergessen commented on Sep 15, 2015

    @nickvergessen
    Contributor

    basicSync is always the worst test to use for debugging because it does everything in one step.
    I can take this over

  7. PVince81 commented on Sep 15, 2015

    @PVince81
    ContributorAuthor

    Feel free to take over this and dig deeper. The bisect is done and it's a locking issue.

  8. nickvergessen commented on Sep 15, 2015

    @nickvergessen
    Contributor

    Tested the failing stuff locally with DB locking:

    Test Result
    shareFile ✅
    sharePermissions ✅
    uploadFiles ❌
    basicSync ❌
  9. icewind1991 commented on Sep 15, 2015

    @icewind1991
    Contributor

    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

  10. DeepDiver1975 commented on Sep 15, 2015

    @DeepDiver1975
    Contributor

    timeout in the fpm setup???

  11. icewind1991 commented on Sep 15, 2015

    @icewind1991
    Contributor

    Looking at the db it seems that locks are still being modified but without going trough the storage layer (where my log works)

  12. nickvergessen commented on Sep 15, 2015

    @nickvergessen
    Contributor

    well it's syncing

    It's also not getting stuck here. The tests just take some time because they transfer GBs of Data

  13. icewind1991 commented on Sep 15, 2015

    @icewind1991
    Contributor

    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 sharePermissions taking a lot of time

  14. nickvergessen commented on Sep 15, 2015

    @nickvergessen
    Contributor

    sharePermissions passes here, as per above. Only basicSync and uploadFiles fail

  15. PVince81 commented on Sep 16, 2015

    @PVince81
    ContributorAuthor

    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.

  16. PVince81 commented on Sep 16, 2015

    @PVince81
    ContributorAuthor

    False alarm, forgot to enable php5-redis ...
    I'll redo the bisect with redis locking enabled.

  17. PVince81 commented on Sep 16, 2015

    @PVince81
    ContributorAuthor

    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...

  18. PVince81 commented on Sep 16, 2015

    @PVince81
    ContributorAuthor

    Hmmm, but I was testing with redis locking. That doesn't make sense, as the commit is for DB locking.

  19. icewind1991 commented on Sep 16, 2015

    @icewind1991
    Contributor

    #19098 fixes the problem with db locking for me

  20. PVince81 commented on Sep 16, 2015

    @PVince81
    ContributorAuthor

    @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.

  21. PVince81 commented on Sep 22, 2015

    @PVince81
    ContributorAuthor

    Fixed by #19098

  22. locked as resolved and limited conversation to collaborators on Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions