[INFRAUTILS-44] SystemReady.registerListener(SystemReadyListener) is broken is system if already active Created: 07/Jun/18  Updated: 12/Jun/18  Resolved: 12/Jun/18

Status: Resolved
Project: infrautils
Component/s: None
Affects Version/s: None
Fix Version/s: Oxygen-SR3, Fluorine

Type: Bug Priority: Medium
Reporter: Michael Vorburger Assignee: Michael Vorburger
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks INFRAUTILS-43 Umbrella issue for required improveme... Resolved
blocks OVSDB-458 OVSDB should open 6640 only when syst... Resolved

 Description   

I think I made a fairly major logical design "thinko" mistake in SystemReady.registerListener(SystemReadyListener) - it's broken if the system is ALREADY active!

Fixing coming up ASAP.

k.faseela FYI.



 Comments   
Comment by Michael Vorburger [ 07/Jun/18 ]

https://git.opendaylight.org/gerrit/#/c/72766/ raised for master; I'll cherry-pick to stable/oxygen when merged.

FTR: I've stumbled upon this while working on OVSDB-458 for INFRAUTILS-43.

Comment by Faseela K [ 07/Jun/18 ]

vorburger : But in normal scenarios such a failure cannot happen, if bundles do the registration in their constructors right? We don't have a case where system is ACTIVE, and still people are registering for system ready?? will that happen?

Comment by Michael Vorburger [ 07/Jun/18 ]

k.faseela you are right re. current usages that I'm aware of, BUT nothing in the current API enforces this - one CAN use it at any time. In which case, as things are, it will just get ignored, which is very bad. And in c/72767 for OVSDB-458 I've just introduced a new usage which seems to be required to happen inside a DTCL which I can only suspect (not tested) probably happens later, so this is needed for that.

Generated at Wed Feb 07 20:02:07 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.