"Recursive group membership found" log entries found

  • Platform information:
    • Hardware: Raspberry Pi 4
    • OS: Ubuntu 22.04
    • Java Runtime Environment: OpenJDK 17
    • openHAB version: 4.1.1

Hi, probably from version 4.1 or 4.1.1 I see at openhab start such log entries:

2024-02-11 21:09:27.748 [ERROR] [s.internal.SemanticsMetadataProvider] - Recursive group membership found: Shelly25SufitowePietroGarderoba is both, a direct o
r indirect parent and a child of Sypialnia.

Of course there is no such situation that any of this item is both parent and child of another item.

I remember that a few months ago was similar problem with some earlier verasion of openhab and was fixed in development.

Does anyone have similiar problem with 4.1.1 version ?

There was a previous discussion here Recursive group membership found

In addition to that link, pay close attention to the error. It says “indirect parent and child”, meaning that there is one or more additional Groups between these two Group Items. For example:


Above would constitute a circular Group membership without Sypianlnia nor Shelly25SufitowePietroGarderoba being direct parents nor children of each other.

I posted a link to a PR I’ve just submitted in the linked topic above… it has an explanation about the two different scenarios and the one that my PR allows.

The circular loop is still not allowed, but at least we can then be sure that there’s a circular loop.