Skip to content

Conversation

@DeepDiver1975
Copy link
Member

@DeepDiver1975 DeepDiver1975 commented Feb 22, 2018

Description

In case of an exception during scanning the lock is not released

Related Issue

detected while working on #28043

How Has This Been Tested?

  • unit tests added

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Feb 22, 2018

Codecov Report

Merging #30580 into master will decrease coverage by 44.85%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #30580       +/-   ##
=============================================
- Coverage     61.61%   16.76%   -44.86%     
+ Complexity    18507      808    -17699     
=============================================
  Files          1090       48     -1042     
  Lines         61112     3001    -58111     
=============================================
- Hits          37653      503    -37150     
+ Misses        23459     2498    -20961
Impacted Files Coverage Δ Complexity Δ
lib/private/Files/Storage/DAV.php 6.06% <0%> (-82.76%) 163% <0%> (ø)
lib/private/Preview/Postscript.php
lib/public/Share.php
lib/private/Setup/PostgreSQL.php
lib/private/Files/Storage/Wrapper/DirMask.php
apps/files_trashbin/lib/Command/ExpireTrash.php
...ivate/IntegrityCheck/Helpers/EnvironmentHelper.php
...b/private/Authentication/TwoFactorAuth/Manager.php
settings/templates/users/part.createuser.php
core/Migrations/Version20171026130750.php
... and 1032 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1d0f2f...fac3b8f. Read the comment docs.

…it string ..... look out for the missing \ ..
@DeepDiver1975 DeepDiver1975 force-pushed the no-stray-lock-in-scanner-test-first branch from 4d8692d to 4702e05 Compare February 22, 2018 10:31
@mmattel
Copy link
Contributor

mmattel commented Feb 22, 2018

Q: is this related? #30505 (./occ files:scan user_name errores with file locked - and exits)

@DeepDiver1975
Copy link
Member Author

Q: is this related? #30505 (./occ files:scan user_name errores with file locked - and exits)

if you are stuck with locks after the exception -> yes

@DeepDiver1975
Copy link
Member Author

Tests proof the stray locks

bildschirmfoto von 2018-02-22 12-09-40

Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PVince81 PVince81 merged commit e380896 into master Feb 26, 2018
@PVince81 PVince81 deleted the no-stray-lock-in-scanner-test-first branch February 26, 2018 09:52
@PVince81
Copy link
Contributor

@DeepDiver1975 bad enough for backport ?

@phil-davis
Copy link
Contributor

Proposed backport in #30847
Note: conflict had to be resolved related to #27532 (comment) - seemed easy to preserve some lines still in stable10 that were gone in master but that code removal never got backported to stable10

@PVince81 @DeepDiver1975

@lock
Copy link

lock bot commented Jul 31, 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 Jul 31, 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.

5 participants