#49767 Ticket 49765 - Async operations can hang when the server is running nunc-stans
Closed by spichugi. Opened by tbordaz.
tbordaz/389-ds-base ticket49765  into  master

Download 49767.patch

Bug Description:
The fix https://pagure.io/389-ds-base/issue/48184 allowed to schedule
several NS handlers where each handler waits for the dispatch of the
previous handler before being schedule.

In case the current handler is never called (connection inactivity)
those that are waiting can wait indefinitely (until timeout or connection
closure). But those that are waiting delay the processing of the operation
when the scheduling is called by connection_threadmain.
The some operations can appear hanging.
This scenario happens with async operations

Fix Description:
Instead of waiting for the completion of the scheduled handler,
evaluates if the scheduled handler needs to be cleared (ns_job_done)
or the waiting handler to be canceled.

https://pagure.io/389-ds-base/issue/49765

Reviewed by: ?

Platforms tested: F26

Flag Day: no

Doc impact: no

Nice, LGTM

rebased onto cfb7dc2b9f3f572dc9374b4098af001cf9f07525

Pull-Request has been merged by tbordaz

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/2826

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

Metadata