Univention Bugzilla – Full Text Bug Listing |
Summary: | Listener sometimes skips transactions during a listener restart - 3.2-8 backport | ||
---|---|---|---|
Product: | UCS | Reporter: | Philipp Hahn <hahn> |
Component: | Listener (univention-directory-listener) | Assignee: | Philipp Hahn <hahn> |
Status: | CLOSED FIXED | QA Contact: | Arvid Requate <requate> |
Severity: | normal | ||
Priority: | P5 | CC: | gohmann, sieverdingbeck, steuwer |
Version: | UCS 3.2 | ||
Target Milestone: | UCS 3.2-8-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | Bug Report | What type of bug is this?: | 7: Crash: Bug causes crash or data loss |
Who will be affected by this bug?: | 5: Will affect all installed domains | How will those affected feel about the bug?: | 3: A User would likely not purchase the product |
User Pain: | 0.600 | Enterprise Customer affected?: | Yes |
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: | |||
Bug Depends on: | 41261 | ||
Bug Blocks: | 41657 | ||
Attachments: | Add two additional essential debug messages. |
Description
Philipp Hahn
2016-06-07 18:04:31 CEST
r69921 | Bug #41261 -> Bug #41486 UDL: Write notifier ID atomically YAML univention-directory-listener.yaml Code review: Ok Advisory: Ok (typo fixed) But I don't see that this fixes the issue: The test case noted in Bug 41261#c2 still reproduces the problem: ============================================================= 1698tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1699tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1700tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1701tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1702tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1703tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1704tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1705tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1706tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1707tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1708tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1712 1708 1712 cn=nscd003,cn=groups,dc=ar323i2,dc=qa m tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten Restarting univention-directory-listener daemon. timeout: finish: univention-directory-listener: (pid 19126) 13s, normally down done. Restarting univention-directory-listener daemon. timeout: finish: univention-directory-listener: (pid 19126) 25s, normally down done. Restarting univention-directory-listener daemon. timeout: finish: univention-directory-listener: (pid 19126) 38s, normally down done. Restarting univention-directory-listener daemon. ok: run: univention-directory-listener: (pid 19240) 0s, normally down done. 1716 1712 1716 cn=nscd0033,cn=uid,cn=temporary,cn=univention,dc=ar323i2,dc=qa a tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1717tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1718tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1719tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1720tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten 1721tail: /var/lib/univention-ldap/listener/listener: Datei abgeschnitten ============================================================= Created attachment 7797 [details] Add two additional essential debug messages. With the attached patch I can confirm that the new version actually fixes the issue. The test case of Bug 41261 Comment 2 is simply bogus. With the attached patch and the following procedure I was able to reproduce the original problem and confirm that the new version fixes the issue: while sleep 10; do /etc/init.d/univention-directory-listener restart; done & tail -f /var/log/univention/listener.log | while read line; do tid=$(sed -n 's/.* Last Notifier ID: //p' <<<"$line"); if [ -n "$tid" ]; then if [ -n "${lid:-}" ] && [ $((lid + 1)) -ne "$tid" ] && [ "$lid" -ne "$tid" ] ; then echo;echo "$lid $tid $dn";echo;fi;lid=$tid; fi; done |