Bug 1299595 - worker threads do not detect abnormally closed connections
Summary: worker threads do not detect abnormally closed connections
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Noriko Hosoi
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-18 17:33 UTC by Noriko Hosoi
Modified: 2016-01-18 17:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-18 17:45:10 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Noriko Hosoi 2016-01-18 17:33:45 UTC
This only applies to post-nunc-stans:  1.3.4 and up

When a connection is abruptly closed due to an error, and there is still some data left to be read(buffer offset vs buffer bytes), connection_threadmain starts to loop.  The connection is marked as closed, which prevents the buffer bytes/offset to be updated(e.g. in connection_read_operation()).  So the worker thread endlessly tries to read the "data" over and over, but it should just remove the connection from the conn table since it's marked as closed.

While it's looping it's repeatedly taking the factory extension lock which creates a lot of contention with the other worker threads.  Ultimately, all the worker threads are trying to read data on closed connections, and the server stops accepting new connections.

Comment 1 Noriko Hosoi 2016-01-18 17:45:10 UTC
This bug is not needed.  Closing this...


Note You need to log in before you can comment on or make changes to this bug.