Bug 56953 - Clean up abandoned UDM locking objects
Summary: Clean up abandoned UDM locking objects
Status: NEW
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC - System diagnostic
Version: UCS 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UMC maintainers
QA Contact: UMC maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-03 10:22 CET by Julia Bremer
Modified: 2025-09-01 16:22 CEST (History)
6 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023120621000198
Bug group (optional): Large environments
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julia Bremer univentionstaff 2024-01-03 10:22:02 CET
From time to time it happens that locking objects are left over.
Especially many were observed during support work in school environments.
It could be that the S4-Connector has part in it, but that is not clear yet. 

In one case, a customer had over 205000 left over temporary objects.

Those were copied to each server during the initial join process.
After deleting all of those objects, the join was 4-5 hours faster than before. 

We should examine how and why this happens, but most importantly enable the customer to clean those up safely.

I could imagine a diagnostic check with a "fix me" button that cleans up all locking objects that are older than a day or so.
Unfortunately the lockTime attribute does not have the appropriate matching rule to search for a timestring older/eq a certain value. I had to use createTimestamp instead.
Comment 2 Florian Best univentionstaff 2024-01-03 11:12:07 CET
Bug #41711 contains a lot of related problems in the bugs marked as duplicate.
Comment 3 Dirk Wiesenthal univentionstaff 2024-05-06 00:45:48 CEST
In the meantime, we do not replicate lock objects during join. Reducing the impact.
Comment 4 Florian Best univentionstaff 2025-09-01 16:22:59 CEST
We could also extend the locking objects with:

> objectClass: dynamicObject
> entryTtl: 172800  # or whatever.

when "dds" overlay is activated.
This will automatically remove the objects after that amount of time.

slapd.conf Configuration:
> moduleload dds
> overlay dds
> dds-max-ttl 31536000
> dds-min-ttl 86400
> dds-default-ttl 604800