-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dcache-xroot: fix memory leak, race and other small issues with recon…
…nect to pool Motivation: Patch: https://rb.dcache.org/r/12917/ Committed: master@5b1329b31d34184e5266bf24ede5f13c5e9c4f9d attempted to fix a reconnect issue on the pools. This patch corrects a slow memory leak and a potential mishandling of a race condition between client and server. It also makes a better effort to prevent/clean up orphaned timers. Modification: 1. do not call release ALL on expiration or cancel, only on close; 2. call timer.cancel in the TimerTask run method; otherwise, the Timer run method goes into indefinite wait and it/its Thread will not be garbage collected; 3. cancel the timer on close; 4. do not start the timer if the mover has already been released, i.e., removed from the mover map. Also added a little more (debug) logging and renames two methods. Result: Bugs eliminated. Target: master Request: 7.0 Request: 6.2 Request: 6.1 Request: 6.0 Request: 5.2 Patch: https://rb.dcache.org/r/12964/ Acked-by: Lea
- Loading branch information
Showing
3 changed files
with
36 additions
and
22 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
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
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