#49869 Ticket 49848 - Nunc-stans event thread can be hanging shortly when a job is (re)armed
Closed by spichugi. Opened by tbordaz.
tbordaz/389-ds-base ticket-49848  into  master

Download 49869.patch

Bug Description:
When a nunc-stans job is rearmed, event_q_notify enqueue the job and notify the event thread.

The first thing event thread does is to lock the job.
But until internal_ns_job_rearm release the lock, event thread is hanging.
This is also the case of a worker thread (work_q_notify) but has less negative impact

Fix Description:
Release the lock of the job before calling event_q_notify/work_q_notify

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

Reviewed by: ?

Platforms tested: F27

Flag Day: no

Doc impact: no

This PR was a tentative to improve the situation on nunc-stans.
@firstyear create a new PR https://pagure.io/389-ds-base/pull-request/49636 that is a larger change and that is the priority. We can not say if https://pagure.io/389-ds-base/pull-request/49869 still applies. So just cancel it

Pull-Request has been closed 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/2928

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