#50650 Issue 50646 - Improve task handling during shutdowns
Merged 10 months ago by mreynolds. Opened 10 months ago by mreynolds.
mreynolds/389-ds-base issue50646  into  389-ds-base-1.4.1

No commits found

Bug Description:

There is a race condition when stopping the server and a running import task that can cause a heap-use-after-free.

Fix Description:

For an import task, encapsulate the import thread with a global thread increment/decrement (just like the export task). Also improved how tasks are notified to abort by notifying them before we wait for active threads to finish. Then the tasks get destroyed after all threads are complete.

relates: https://pagure.io/389-ds-base/issue/50646

this is now in db-bdb/bdb_inmport.c.

do you prepare another version on master ?

this is now in db-bdb/bdb_inmport.c.
do you prepare another version on master ?

I will, but this needs to get into 1.3.10 first, so I started at 1.4.1 branch, and will front port it to master once ack'ed.

this is now in db-bdb/bdb_inmport.c.
do you prepare another version on master ?

I will, but this needs to get into 1.3.10 first, so I started at 1.4.1 branch, and will front port it to master once ack'ed.

ok, ack

rebased onto 4673148

10 months ago

Pull-Request has been merged by mreynolds

10 months ago
Metadata