-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dcache-bulk: fix cancellation issues
Motivation: Changes introduced by: https://rb.dcache.org/r/14115 master@8a5c358af45586383d87873952407c646f81f4c6 and https://rb.dcache.org/r/14118/ master@0b4140b454b819de55c7c412539294537ff0beb8 inadvertently introduced a regression in request cancellation. In addition, the semaphore release was not always taking place. Modification: The semaphore issue is addressed by selective modifications of synchronization on the `running` map. The problem with cancellation (hanging perpetually in the CANCELLING state) was solved by eliminating the re-entrance on the synchronization block when cancelling running tasks. We have also modified the `cancel` procedure to interrupt the main thread first and then set container state. We also changed the main target loops not to throw the interrupted exception but simply to stop processing. Result: Testing of cancellations for both recursive and non-recursive tasks show correctness of semaphore count and completion of the cancellation. Target: master Request: 9.2 (a definite bug!) Patch: https://rb.dcache.org/r/14127/ Depends-on: #14126 Requires-notes: yes (if 9.2 released before this is applied) Acked-by: Tigran
- Loading branch information
Showing
2 changed files
with
119 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.