Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 6.0.0beta18, 6.0.0RC0
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
It seems that Jetty tries to get back a thread from the active thread pool (perhaps after MaxIdleTime) by issuing the Thread#interrupt. It closes active NIO channels and breaks Berkley DB JE (see their SR #10463).
a) Jetty must not intterrupt a thread that is still doing something. If user wants Jetty to do so, he should explicitly ask for it. Issuing Thread#interrupt may break user application running under Jetty in unpredictable ways.
b) If my assumption about MaxIdleTime is right, it is incorrect to apply idle time counter to the thread which is not, in fact, idle. The time Jetty waits for active server threads to finish must be configured separately from the time Jetty waits for client user-agents. As i've said in JETTY-63 bug report, Jetty must either turn off all timeouts while a server thread is active, or use a separate timeout value for both TCP/IP SO_TIMEOUT and Jetty's internal expiration timeout.
Issue Links
- is superceded by
-
JETTY-83
Provide extra/different timeout for when a request is processing.
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 6.0.0RC0 [ 12558 ] | |
| Fix Version/s | 6.0.0beta18 [ 12687 ] | |
| Resolution | Fixed [ 1 ] |