Repository navigation
[8.2] add locks in the scanner to prevent multiple scanners running on the … - #24260
Conversation
|
By analyzing the blame information on this pull request, we identified @PVince81, @butonic and @ringmaster to be potential reviewers |
|
@icewind1991 just tried reproducing the original issue and I'm getting a different behavior on v8.2.3 without this fix. It seems that a "mv" operation never rescans the folder's contents, while a "ls" does. So even with the While "ls" is running the rescan, a "mv" will properly be locked out. So not sure, maybe the scanner workflow was different in v8.2.3 and since OC 9 we scan in more situations ? I hope this is intended and not an unintended side effect. @icewind1991 can you confirm ? |
|
It does make sense for OC to first rescan a folder's contents before renaming it, so I'd say OC 9 is right and OC 8 was wrong. |
|
Even stranger: when I start first a "mv test test2" and directly after that I do "ls test", the "ls" wins and "mv" fails with 423 Locked. |
|
I just tested two concurrent "ls" on the same to-be-rescanned folder. (like #20555 (comment) but with two "ls" operations) Before this fix: both hang and take time, one times out with "Deadlock" error. 👍 since this does fixes an issue let's move forward with it. |
|
Tested and works 👍 |
|
Regression in occ files:scan with single file shares: #24507 |
|
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. |
…same files
Backport of #24205 to stable 8.2