openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.59k forks source link

Lots of ItemAddedEvent at OH2 startup #2011

Closed staehler closed 7 years ago

staehler commented 7 years ago

I've installed the latest nightly snapshop (2.1.0~20170305205039-1) and get thousands of ItemAddedEvent. I just grep'ed for one item, which appears such often at startup (see log excerpt). Looks like an unnecessary loop?

2017-03-06 16:50:12.245 [ItemAddedEvent            ] - Item 'PlexWZPower' has been added.
2017-03-06 16:50:17.430 [ItemAddedEvent            ] - Item 'PlexWZPower' has been added.
2017-03-06 16:50:53.910 [ItemAddedEvent            ] - Item 'PlexWZPower' has been added.
2017-03-06 16:50:55.573 [ItemAddedEvent            ] - Item 'PlexWZPower' has been added.
2017-03-06 16:50:58.376 [ItemAddedEvent            ] - Item 'PlexWZPower' has been added.
2017-03-06 16:51:00.878 [ItemAddedEvent            ] - Item 'PlexWZPower' has been added.
2017-03-06 16:51:07.582 [ItemAddedEvent            ] - Item 'PlexWZPower' has been added.
2017-03-06 16:51:10.136 [ItemAddedEvent            ] - Item 'PlexWZPower' has been added.
2017-03-06 16:51:15.973 [ItemAddedEvent            ] - Item 'PlexWZPower' has been added.
2017-03-06 16:51:18.866 [ItemAddedEvent            ] - Item 'PlexWZPower' has been added.
2017-03-06 16:51:29.661 [ItemAddedEvent            ] - Item 'PlexWZPower' has been added.

Can anybody confirm this? Is this just my installation, a known and wanted behavior or is it a bug?

kaikreuzer commented 7 years ago

Neither known to me nor wanted. Is this independent of any binding, i.e. merely by defining an item? If so, best report it as a bug (with a reproducible description) at https://github.com/eclipse/smarthome/issues. Thanks!

staehler commented 7 years ago

@kaikreuzer It is independent of any item, yes. It's just an excerpt of the events.log, as there are many hundred lines of this, with estimated every item. But I didn't analyze the completeness of the items. Unfortunately I'm no code analyst or programmer and have no idea about the startup sequences of openhab nor can I describe how to reproduce this behavior. In my installation it's just easy: stop openhab2 and start it again. I cannot imagine, which part of openhab could be responsible for this. Which information could be useful for you? A list of bindings, which are installed? The openhab2 startup lasts at least 5 minutes, I think it's even more. Is this a useful hint?

staehler commented 7 years ago

One further information: three days ago I've upgraded from Beta Release to the Snapshot Release. This behavior came with the Snapshot Release.

kaikreuzer commented 7 years ago

Well, with reproducible I meant a description like:

If this does not provoke your issue, you should try to figure out what is the difference of your installation to this "clean" setup.

staehler commented 7 years ago

Hi, thanks for your hint. I've downgraded to my previous OH2 version and the failure remained. Than I substituted /var/lib/openhab2 from a previous backup and the mentioned behavior disappeared. I have no glue, why this happened, but it must have to do something, with the userdata. OK, I'm fine now an close this issue. Thanks!