-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-file delete test(s) are not reliable #4582
Comments
Batch deletion of selected files/folders using webui fails randomly. It seems to be that the problem might be with the backend server. {
"reqId": "c7e1225a-94a0-4394-8f17-fa8400cd1d7e",
"level": 4,
"time": "2021-01-05T09:45:41+00:00",
"remoteAddr": "172.17.0.2",
"user": "user1",
"app": "webdav",
"method": "DELETE",
"url": "/core/remote.php/webdav/'single'quotes",
"message": "Exception: An exception occurred while executing 'UPDATE `oc_filecache` SET `storage` = ?, `path` = ?, `path_hash` = ?, `name` = ?, `parent` =? WHERE `fileid` = ?' with params [848, \"files_trashbin\\/files\\/'single'quotes.d1609839941\", \"15298c333f5696f0d3250ce21bed22ed\", \"'single'quotes.d1609839941\", 2147567358, 2147567251]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '848-15298c333f5696f0d3250ce21bed22ed' for key 'oc_filecache.fs_storage_path_hash': {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\UniqueConstraintViolationException\",\"Message\":\"An exception occurred while executing 'UPDATE `oc_filecache` SET `storage` = ?, `path` = ?, `path_hash` = ?, `name` = ?, `parent` =? WHERE `fileid` = ?' with params [848, \\\"files_trashbin\\\\\\/files\\\\\\/'single'quotes.d1609839941\\\", \\\"15298c333f5696f0d3250ce21bed22ed\\\", \\\"'single'quotes.d1609839941\\\", 2147567358, 2147567251]:\\n\\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '848-15298c333f5696f0d3250ce21bed22ed' for key 'oc_filecache.fs_storage_path_hash'\",\"Code\":0,\"Trace\":\"#0 \\/mnt\\/sda1\\/www\\/core\\/lib\\/composer\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/DBALException.php(172): Doctrine\\\\DBAL\\\\Driver\\\\AbstractMySQLDriver->convertException()\\n#1 \\/mnt\\/sda1\\/www\\/core\\/lib\\/composer\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/DBALException.php(151): Doctrine\\\\DBAL\\\\DBALException::wrapException()\\n#2 \\/mnt\\/sda1\\/www\\/core\\/lib\\/composer\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Connection.php(918): Doctrine\\\\DBAL\\\\DBALException::driverExceptionDuringQuery()\\n#3 \\/mnt\\/sda1\\/www\\/core\\/lib\\/private\\/DB\\/Connection.php(187): Doctrine\\\\DBAL\\\\Connection->executeQuery()\\n#4 \\/mnt\\/sda1\\/www\\/core\\/lib\\/private\\/Files\\/Cache\\/Cache.php(593): OC\\\\DB\\\\Connection->executeQuery()\\n#5 \\/mnt\\/sda1\\/www\\/core\\/lib\\/private\\/Files\\/Cache\\/Cache.php(535): OC\\\\Files\\\\Cache\\\\Cache->moveFromCache()\\n#6 \\/mnt\\/sda1\\/www\\/core\\/lib\\/private\\/Files\\/Cache\\/Updater.php(195): OC\\\\Files\\\\Cache\\\\Cache->move()\\n#7 \\/mnt\\/sda1\\/www\\/core\\/apps\\/files_trashbin\\/lib\\/Trashbin.php(345): OC\\\\Files\\\\Cache\\\\Updater->renameFromStorage()\\n#8 \\/mnt\\/sda1\\/www\\/core\\/apps\\/files_trashbin\\/lib\\/Storage.php(185): OCA\\\\Files_Trashbin\\\\Trashbin::move2trash()\\n#9 \\/mnt\\/sda1\\/www\\/core\\/apps\\/files_trashbin\\/lib\\/Storage.php(131): OCA\\\\Files_Trashbin\\\\Storage->doDelete()\\n#10 \\/mnt\\/sda1\\/www\\/core\\/lib\\/private\\/Files\\/View.php(1222): OCA\\\\Files_Trashbin\\\\Storage->rmdir()\\n#11 \\/mnt\\/sda1\\/www\\/core\\/lib\\/private\\/Files\\/View.php(367): OC\\\\Files\\\\View->basicOperation()\\n#12 \\/mnt\\/sda1\\/www\\/core\\/lib\\/public\\/Events\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(*** sensitive parameters replaced ***)\\n#13 \\/mnt\\/sda1\\/www\\/core\\/lib\\/private\\/Files\\/View.php(378): OC\\\\Files\\\\View->emittingCall()\\n#14 \\/mnt\\/sda1\\/www\\/core\\/apps\\/dav\\/lib\\/Connector\\/Sabre\\/Directory.php(343): OC\\\\Files\\\\View->rmdir()\\n#15 \\/mnt\\/sda1\\/www\\/core\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Tree.php(179): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->delete()\\n#16 \\/mnt\\/sda1\\/www\\/core\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/CorePlugin.php(281): Sabre\\\\DAV\\\\Tree->delete()\\n#17 \\/mnt\\/sda1\\/www\\/core\\/lib\\/composer\\/sabre\\/event\\/lib\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpDelete()\\n#18 \\/mnt\\/sda1\\/www\\/core\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#19 \\/mnt\\/sda1\\/www\\/core\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#20 \\/mnt\\/sda1\\/www\\/core\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(321): Sabre\\\\DAV\\\\Server->start()\\n#21 \\/mnt\\/sda1\\/www\\/core\\/apps\\/dav\\/appinfo\\/v1\\/webdav.php(66): Sabre\\\\DAV\\\\Server->exec()\\n#22 \\/mnt\\/sda1\\/www\\/core\\/remote.php(165): require_once('\\/mnt\\/sda1\\/www\\/c...')\\n#23 {main}\",\"File\":\"\\/mnt\\/sda1\\/www\\/core\\/lib\\/composer\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/AbstractMySQLDriver.php\",\"Line\":59}"
} Highlight:
|
this sounds like an issue in core, here a similar issue when restoring owncloud/core#38039 |
we had that kind on issue in 2018, did it come back? owncloud/core#33325 |
@individual-it @phil-davis looks similar and the server log also looks the same |
@phil-davis how's that one looking? From my recent involvement with merging back the |
Closing as fixed/unresponsive |
Public link: delete multiple files test fails sometimes due to this issue. Server: |
Some other fails due to some error while doing batch action: |
closing this in favour of owncloud/ocis#3612 |
This test scenario failed in the nightly run:
https://drone.owncloud.com/owncloud/web/12623/6/20
Investigate the tests that work with multiple files "at once" and see if the timing can be improved, or if there really is a problem with the actual UI or backend server.
The text was updated successfully, but these errors were encountered: