OH3: openhab.log says rule model is loaded twice

Hey there!

I’ve just upgraded to Openhab 3 (tried 3.0.1 and 3.1-M1) and noticed that everytime I change a rule (either via Samba, vim or simple echo appending) the openhab.log says 2 times that the rule is being loaded:

2021-02-03 18:17:26.726 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.rules'
2021-02-03 18:17:27.410 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.rules'

I also did a fresh install with just one rule and it always prints 2 log lines.
In Openhab 2.5 there has been only one log line, is this a bug in Openhab 3?

Thanks!

  • Platform information:
    • Hardware: Raspberry PI 4
    • OS: raspbian
    • Java Runtime Environment: Java 11 Zulu
    • openHAB version: 3.0.1 or 3.1-M1

This used to happen for a lot of people on 2.5 too. In fact it would actually fail on the first load and then succeed on the second one. The problem is two file system events are generated when saving, one when the file save starts and one when it completes. OH triggers a load on both events. As long as the second load succeeds there is no problem.

Alright! I didn’t remember this happening on 2.5, but maybe I’m wrong :slight_smile:
Thanks!