-
-
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] QuantityType unit is lost when restoring values on startup #8809
Comments
I uninstalled rrd4j and the errors went away. |
It's related to #8806. Because of these issues with restoring values on startup I personally use mapdb which has no issues restoring any state. IIRC rrd4j also cannot store strings for instance. |
Right, rrd4j can only handle numbers - it thus also sends raw numbers upon restoreOnStartup. |
Did you ever look into creating a more generic solution to the problem that there are many persistence add-ons which may not always be able to store the unit and precision in the backing database? I.e. it could be derived from the Item in Another way could be to provide some helper classes in Core that a persistence add-on could use to store the last known unit/precision information in a file when it's not possible to store this in the database itself. |
Having had another look at the code, I'd think that we could actually use |
* Cache item to improve performance * Also return DecimalType for QuantityType values Related to openhab#8928 Reintroduces openhab#8809 Signed-off-by: Wouter Born <[email protected]>
* [rrd4j] Improve performance * Cache item to improve performance * Also return DecimalType for QuantityType values Related to #8928 Reintroduces #8809 Signed-off-by: Wouter Born <[email protected]>
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/new-version-of-dynamodb-persistence-testing-needed/116854/1 |
* [rrd4j] Improve performance * Cache item to improve performance * Also return DecimalType for QuantityType values Related to openhab#8928 Reintroduces openhab#8809 Signed-off-by: Wouter Born <[email protected]>
* [rrd4j] Improve performance * Cache item to improve performance * Also return DecimalType for QuantityType values Related to openhab#8928 Reintroduces openhab#8809 Signed-off-by: Wouter Born <[email protected]>
When restarting see events like this in events.log:
Later on, it's logged correctly:
The text was updated successfully, but these errors were encountered: