Bug 48822 - Listener initialization doesn't abort in case notifier connection terminates
Listener initialization doesn't abort in case notifier connection terminates
Status: NEW
Product: UCS
Classification: Unclassified
Component: Listener (univention-directory-listener)
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-02-28 18:07 CET by Arvid Requate
Modified: 2019-02-28 18:09 CET (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.023
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Ticket number: 2018112921000513
Bug group (optional):
Max CVSS v3 score:


Attachments
abort_if_change_update_schema_failed.patch (542 bytes, patch)
2019-02-28 18:07 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 2019-02-28 18:07:42 CET
Created attachment 9878 [details]
abort_if_change_update_schema_failed.patch

When the notifier is restarted while the listener is initializing the modules, the listener logs:

==================================================
28.02.19 11:54:51.750  LISTENER    ( INFO    ) : initialize schema for module SOME-MODULE
[...]
28.02.19 11:54:51.966  LISTENER    ( INFO    ) : module SOME-MODULE for relating objects
28.02.19 11:54:52.268  LISTENER    ( ALL     ) : >>>MSGID: 123
GET_SCHEMA_ID

28.02.19 11:54:52.268  LISTENER    ( ALL     ) : RESULT: [(null)]
28.02.19 11:54:52.268  LISTENER    ( ERROR   ) : connection to notifier was closed
28.02.19 11:54:52.268  LISTENER    ( ERROR   ) : failed to get schema DN
28.02.19 11:54:52.268  LISTENER    ( WARN    ) : finished initializing module SOME-MODULE with rv=80
28.02.19 11:54:52.269  LISTENER    ( WARN    ) : initializing module NEXT-MODULE
==================================================

The listener should not continue initializing modules if it failed to read from the notifier. See attached patch proposal.