Details
-
Type:
Improvement
-
Status: Open (View Workflow)
-
Priority:
Minor
-
Resolution: Unresolved
-
Component/s: core
-
Labels:
-
Similar Issues:
Description
As a follow-up to https://github.com/jenkinsci/jenkins/pull/3861 from Wadeck Follonier and to previous Pluggable Storage patches from Jesse Glick, I would like to revisit usage of InterruptedException. Currently this exception type gets suppressed in many use-cases around file management, and it may lead to improper Jenkins restarts and termination in some cases when threads do not get properly interrupted.
By the way this post is quite thought-provoking. Certainly it is relevant to the API designs used in Remoting, though to a much lesser extent it is significant for local file operations. One of his points is that edge-triggered models such as Java’s interruption are difficult to use correctly, especially across libraries. Not sure there is much we can do about it without intrusive changes.