Skip to content
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

[stable7] Close cursor early in calculateFolderSize #13832

Closed
wants to merge 1 commit into from

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Feb 2, 2015

This method triggers additional queries in $this->update() so to avoid
potential database locks or delays, we close the cursor as soon as it is not needed any more

This is the backport that will fail with Oracle (which we reverted here #13803)

  • fix Oracle unit test issues

This method triggers additional queries in $this->update() so to avoid
potential database locks or delays, we close the cursor as soon as it is not needed any more
@PVince81 PVince81 modified the milestone: 7.0.5-next-maintenance Feb 2, 2015
@DeepDiver1975
Copy link
Member

#13831 (comment)

let's postpone this - THX

@scrutinizer-notifier
Copy link

The inspection completed: 8 new issues

@PVince81
Copy link
Contributor Author

PVince81 commented Feb 2, 2015

Huh what ?! It was supposed to fail on Oracle ?

@MorrisJobke
Copy link
Contributor

@PVince81 Oracle is just run on master and the stable branches - not on PRs ;)

@ghost
Copy link

ghost commented Apr 30, 2015

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/12108/
🚀 Test PASSed.🚀
chuck

@MorrisJobke
Copy link
Contributor

@PVince81 Seems to work on Oracle:

01:32:23.826 + ./autotest.sh oci
01:32:23.882 Using database oc_autotest5
01:32:23.882 Setup environment for oci testing ...
01:32:23.887 Fire up the oracle docker
01:32:25.169 Waiting 60 seconds for Oracle initialization ... 
01:33:25.167 Installing ....
01:33:25.229 ownCloud is not installed - only a limited number of commands are available
01:33:47.479 ownCloud was successfully installed
01:33:47.479 Testing with oci ...
01:33:50.830 No coverage
01:33:54.286 PHPUnit 4.4.0 by Sebastian Bergmann.
01:33:54.286 
01:33:54.286 Configuration read from /var/jenkins/workspace/pull-request-analyser-ng-simple@3/label/SLAVE/tests/phpunit-autotest.xml
01:33:54.286 
01:33:54.311 ..............S..............................................   61 / 3546 (  1%)
01:33:57.400 .............................................................  122 / 3546 (  3%)
01:34:03.100 .............................................................  183 / 3546 (  5%)
01:34:04.220 .............................................................  244 / 3546 (  6%)
01:34:04.319 .............................................................  305 / 3546 (  8%)
01:34:04.433 .............................................................  366 / 3546 ( 10%)
01:34:04.500 .............................................................  427 / 3546 ( 12%)
01:34:04.577 .............................................................  488 / 3546 ( 13%)
01:34:08.022 .............................................................  549 / 3546 ( 15%)
01:34:20.522 .............................................................  610 / 3546 ( 17%)
01:34:21.476 .............................................................  671 / 3546 ( 18%)
01:34:21.568 .............................................................  732 / 3546 ( 20%)
01:35:26.311 ...S.SSSSSSS.................................................  793 / 3546 ( 22%)
01:36:24.783 .............................................................  854 / 3546 ( 24%)
01:37:06.753 .............................................................  915 / 3546 ( 25%)
01:38:10.191 .............................................................  976 / 3546 ( 27%)
01:38:24.089 .............................................SSSSSS.......... 1037 / 3546 ( 29%)
01:38:24.547 ............................................................. 1098 / 3546 ( 30%)
01:38:24.669 ...................................SSSSSSSSSSSSSSSSSSSSSSSSSS 1159 / 3546 ( 32%)
01:38:28.923 SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS........................ 1220 / 3546 ( 34%)
01:38:28.990 ............................................................. 1281 / 3546 ( 36%)
01:38:29.020 ............................................................. 1342 / 3546 ( 37%)
01:38:29.091 ............................................................. 1403 / 3546 ( 39%)
01:38:29.968 ............................................................. 1464 / 3546 ( 41%)
01:38:30.914 ............................................................. 1525 / 3546 ( 43%)
01:38:33.075 ............................................................. 1586 / 3546 ( 44%)
01:38:44.413 ............................................................. 1647 / 3546 ( 46%)
01:39:00.040 ............................................................. 1708 / 3546 ( 48%)
01:39:05.768 ............................................................. 1769 / 3546 ( 49%)
01:39:06.268 ............................................................. 1830 / 3546 ( 51%)
01:39:06.731 ............................................................. 1891 / 3546 ( 53%)
01:39:11.409 ............................................................. 1952 / 3546 ( 55%)
01:39:13.429 ............................................................. 2013 / 3546 ( 56%)
01:39:21.538 ............................................................. 2074 / 3546 ( 58%)
01:39:53.914 ............................................................. 2135 / 3546 ( 60%)
01:40:05.693 ............................................................. 2196 / 3546 ( 61%)
01:40:05.806 ............................................................. 2257 / 3546 ( 63%)
01:40:07.013 ............................................................. 2318 / 3546 ( 65%)
01:40:07.506 ......................................................SS..... 2379 / 3546 ( 67%)
01:40:07.812 ..............................SSSSSSSSSSSSSSSSSSSS........... 2440 / 3546 ( 68%)
01:40:07.939 .....SSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.......................... 2501 / 3546 ( 70%)
01:40:12.149 ............SS....................................S.......... 2562 / 3546 ( 72%)
01:40:23.251 ............................................................. 2623 / 3546 ( 73%)
01:40:28.536 ............................................................. 2684 / 3546 ( 75%)
01:40:28.761 ............................................................. 2745 / 3546 ( 77%)
01:40:28.837 ............................................................. 2806 / 3546 ( 79%)
01:40:28.857 ............................................................. 2867 / 3546 ( 80%)
01:40:28.882 ............................................................. 2928 / 3546 ( 82%)
01:41:40.867 ............................................................. 2989 / 3546 ( 84%)
01:41:42.801 ............................................................. 3050 / 3546 ( 86%)
01:41:43.226 ............................................................. 3111 / 3546 ( 87%)
01:41:48.674 ............................................................. 3172 / 3546 ( 89%)
01:41:49.182 ............................................................. 3233 / 3546 ( 91%)
01:42:28.742 ............................................................. 3294 / 3546 ( 92%)
01:43:45.971 ............................................................. 3355 / 3546 ( 94%)
01:47:04.904 ............................................................. 3416 / 3546 ( 96%)
01:49:24.758 ............................................................. 3477 / 3546 ( 98%)
01:49:42.953 ............................................................. 3538 / 3546 ( 99%)
01:50:05.570 ........
01:50:05.614 
01:50:05.614 Time: 16.24 minutes, Memory: 140.00Mb

:)

@DeepDiver1975 DeepDiver1975 modified the milestones: 7.0.6-current-maintenance, 7.0.7-next-maintenance May 26, 2015
@PVince81
Copy link
Contributor Author

Upgrading to 8.0.x is advised.
Closing.

@PVince81 PVince81 closed this Jun 17, 2015
@PVince81 PVince81 deleted the stable7-closecursorforcalculatefoldersize branch June 17, 2015 13:53
@MorrisJobke MorrisJobke removed this from the 7.0.7-current-maintenance milestone Jun 17, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants