Skip to content

Conversation

@icewind1991
Copy link
Contributor

if a file doesn't exist, filemtime will return false

Error is caused by trying to delete a ghost file since #24813

Fixes #25002

@icewind1991 icewind1991 added this to the 9.1-current milestone Jun 7, 2016
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @d--j, @PVince81 and @schiessle to be potential reviewers

@nickvergessen
Copy link
Contributor

Should fix both, oracle and postgres: 👍

@PVince81
Copy link
Contributor

PVince81 commented Jun 7, 2016

👍

@PVince81
Copy link
Contributor

PVince81 commented Jun 7, 2016

pgsql not behaving:

09:18:10 + phpenv local 5.6
09:18:10 /tmp/hudson9176260981587050817.sh: 2: /tmp/hudson9176260981587050817.sh: phpenv: not found
09:18:11 Build step 'Execute shell' marked build as failure
09:18:11 Recording test results
09:18:13 ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
09:18:13 Setting commit status on GitHub for https://github.com/owncloud/core/commit/6822689e381b12df035384b6b25ff8d07e6b57a3
09:18:13 Finished: FAILURE

OCI broken:

09:18:10 + phpenv local 5.6
09:18:10 /tmp/hudson9176260981587050817.sh: 2: /tmp/hudson9176260981587050817.sh: phpenv: not found
09:18:11 Build step 'Execute shell' marked build as failure
09:18:11 Recording test results
09:18:13 ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
09:18:13 Setting commit status on GitHub for https://github.com/owncloud/core/commit/6822689e381b12df035384b6b25ff8d07e6b57a3
09:18:13 Finished: FAILURE

@icewind1991 I didn't expect your PR to have such side effects.

@icewind1991
Copy link
Contributor Author

jenkins seems to have exploded a bit from what I can tell (same errors in #24899)

@nickvergessen
Copy link
Contributor

Oracle tests seem to fail normally, dont know where you looked:

15:54:24 1) Test\Files\ViewTest::testLockBasicOperation with data set #20 ('file_exists', array('dir'), 'dir', null)
15:54:24 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("mimepart","mimetype","mtime","size","etag","storage_mtime","permissions","checksum","path_hash","path","parent","name","storage") SELECT ?,?,?,?,?,?,?,?,?,?,?,?,? FROM "oc_filecache" WHERE "storage" = ? AND "path_hash" = ? HAVING COUNT(*) = 0' with params ["1", "2", false, -1, "5756ccac8f269", false, 23, "", "d41d8cd98f00b204e9800998ecf8427e", "", -1, "", 921, 921, "d41d8cd98f00b204e9800998ecf8427e"]:
15:54:24 
15:54:24 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."mtime")
15:54:24 
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Adapter.php:113
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:247
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Cache.php:265
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Cache.php:220
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Scanner.php:261
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Scanner.php:201
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Scanner.php:163
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Scanner.php:304
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Files/ViewTest.php:1773
15:54:24 2) Test\Files\ViewTest::testLockBasicOperationUnlocksAfterException with data set #20 ('file_exists', array('dir'), 'dir', null)
15:54:24 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("mimepart","mimetype","mtime","size","etag","storage_mtime","permissions","checksum","path_hash","path","parent","name","storage") SELECT ?,?,?,?,?,?,?,?,?,?,?,?,? FROM "oc_filecache" WHERE "storage" = ? AND "path_hash" = ? HAVING COUNT(*) = 0' with params ["1", "2", false, -1, "5756ccba82c57", false, 23, "", "d41d8cd98f00b204e9800998ecf8427e", "", -1, "", 968, 968, "d41d8cd98f00b204e9800998ecf8427e"]:
15:54:24 
15:54:24 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."mtime")
15:54:24 
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Adapter.php:113
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:247
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Cache.php:265
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Cache.php:220
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Scanner.php:261
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Scanner.php:201
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Scanner.php:163
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/Files/Cache/Scanner.php:304
15:54:24 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Files/ViewTest.php:1911

@nickvergessen
Copy link
Contributor

We use false here instead of taking care that it is int only:

$data['mtime'] = $this->filemtime($path);

@nickvergessen
Copy link
Contributor

👍 all green again

@nickvergessen
Copy link
Contributor

@PVince81 your +1 still counts?

@PVince81
Copy link
Contributor

PVince81 commented Jun 8, 2016

Yes... and I pray that these changes won't cause further side effects down the road.

@PVince81 PVince81 merged commit 87c150e into master Jun 8, 2016
@PVince81 PVince81 deleted the parent-storage-time-cast branch June 8, 2016 07:57
@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] postgres on master is failing

5 participants