-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rrd4j] rrd files present even for certain items not specified in the persist strategy #14260
Comments
I checked again my folder and I saw many many rrd files, a lot more than what is defined by my strategy. |
That could be the result of the "persist all" default strategy. If the service is activated before the model is parsed then the default strategy is applied. Also see openhab/openhab-core#3590 |
I was able to reproduce the problem. It happens at the very first start of a new installation. I plan to create a new console command to log and erase the unexpected DB files. |
If I create a Number item named
So this new item is not covered by my persistence setup. So I would not expect a rrd file to be created for this new item. |
Did you create the item when the system was already running or did you restart? |
Via MainUI while OH server was running. |
Can you put a break point to l. 149 ( |
I am making progress. The problem would be in the RRD4j service which should not create the RRD file when querying data. So my feeling is that the RRD file is created but the OH server never stored data in it. This is not a problem of the persistence manager but only a problem if a client (MainUI in my case) requests persisted data for this item. I will confirm that quickly and prepare a fix. |
It is confirmed. |
Related to openhab#14260 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
I discovered that today while I was inspecting different things with my first OH4 snapshot. Then I checked in my OH3.4 files and I saw that it is the same, so the problem is not specific to OH4.
When I checked what are the rrd files in my rrd4j directory, of course I find expected files, that is one for each item included in my rrd4j strategy. But few of them are unexpected. I have the feeling that any item I used to send a command are there, even if they are not in my persist strategy. I don"t think this is expected, or is it ?
I have to check if the file is only updated when I send a new command to the item.
But I have not a file for all my items.
The text was updated successfully, but these errors were encountered: