Bug 43763 - LMDB listener doesn't remove objects from cache that have no modules but LDAP children
LMDB listener doesn't remove objects from cache that have no modules but LDAP...
Status: NEW
Product: UCS
Classification: Unclassified
Component: Listener (univention-directory-listener)
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on: 23367
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-09 12:30 CET by Arvid Requate
Modified: 2018-04-14 14:01 CEST (History)
6 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
best: Patch_Available+


Attachments
dntree_del.patch (4.94 KB, patch)
2017-03-09 12:33 CET, Arvid Requate
Details | Diff
dntree_del.patch (4.99 KB, patch)
2017-03-09 12:36 CET, Arvid Requate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2017-03-09 12:30:40 CET
During re-initialization tests with the UCS 4.2 LMDB listener code (Bug 23367) I found log messages that show that the listener doesn't remove cache objects that have no modules but LDAP children in the dntree. The old code would have removed those cache objects in this case.

This is a very special case and I'm not even sure if it's a bug or a feature.
Reproducible e.g. on a DC Master with S4-Connector by disabling the s4-connector listener module and re-initializing all modules:

ucr set connector/s4/listener/disabled=yes connector/s4/autostart=no
service univention-directory-listener stop
rm /var/lib/univention-directory-listener/handlers/*
service univention-directory-listener start

The listener logs these error messages for each container object:
==================================================================
09.03.17 11:34:12.772  LISTENER    ( WARN    ) : initializing module s4-connector
09.03.17 11:34:12.773  LISTENER    ( ERROR   ) : dntree_del_id: delete failed: subordinate objects must be deleted first
==================================================================


+++ This bug was initially created as a clone of Bug #23367 +++
Comment 1 Arvid Requate univentionstaff 2017-03-09 12:33:49 CET
Created attachment 8508 [details]
dntree_del.patch

This patch would change the behavior back to the previous. As I said above, currently I'm not sure if we should apply this patch.
Comment 2 Arvid Requate univentionstaff 2017-03-09 12:36:12 CET
Created attachment 8509 [details]
dntree_del.patch

Updated instructions to reproduce.