Bug 44166 - univention-directory-listener-convert doesn't copy the notifier_id from BDB to LMDB
univention-directory-listener-convert doesn't copy the notifier_id from BDB t...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Listener (univention-directory-listener)
UCS 3.0
Other Linux
: P1 major (vote)
: UCS 4.2
Assigned To: Arvid Requate
Felix Botner
:
Depends on: 23367
Blocks: 42057
  Show dependency treegraph
 
Reported: 2017-03-30 16:40 CEST by Arvid Requate
Modified: 2017-04-04 18:29 CEST (History)
6 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 4: Will affect most installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.457
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Error handling
Max CVSS v3 score:
requate: Patch_Available+


Attachments
fix_copying_cache_master_entry_to_lmdb.patch (4.90 KB, patch)
2017-03-30 16:40 CEST, 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-30 16:40:43 CEST
Created attachment 8707 [details]
fix_copying_cache_master_entry_to_lmdb.patch

univention-directory-listener-convert doesn't copy the notifier_id from BDB to LMDB. So, on updates the listener starts to replicate everything again.

The attached patch fixed the issue in my tests. The cache_master_entry data was read from BDB but simply not copied to LMDB.


+++ This bug was initially created as a clone of Bug #23367 +++
Comment 1 Arvid Requate univentionstaff 2017-03-30 18:28:29 CEST
r78504: Copy cache_master_entry data from BDB to LMDB

Package rebuilt and announced to updates-test.

I've tested the updated on my UCS 4.1-4 Master amd64 and I see the new informative output:
=============================================================================
23.11.15 22:30:25.317  DEBUG_INIT
Converting listener cache to LMDB
cached notifier_id:     18273
cached schema_id:       7
Starting Univention Directory Listener Daemon: univention-directory-listener.
=============================================================================
Comment 2 Felix Botner univentionstaff 2017-03-31 12:26:10 CEST
OK - update amd64
OK - update i386

during the update i saw 

31.03.17 10:47:25.832  DEBUG_INIT
Converting listener cache to LMDB
cached notifier_id:     1179
cached schema_id:       8

where notifier_id was the id before the update was started and no strange listener (or s4 connector) messages/behavior after the update.
Comment 3 Stefan Gohmann univentionstaff 2017-04-04 18:29:56 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".