Skip to content
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

virtual sensor database table does not change to match new structure #48

Closed
charvolant opened this issue Jan 30, 2014 · 2 comments
Closed
Assignees

Comments

@charvolant
Copy link

If I add an additional field to a virtual sensor, the h2 database table is unhappy.

ERROR [2014-01-30 12:11:18,460] gsn.VSensorLoader VSensorLoader-Thread0 - The table kirkegaardanddanishrevenuec03r01ungrazedhighngbheavy100 in the database, doesn't have the >depth< column.
org.openiot.gsn.utils.GSNRuntimeException: The table kirkegaardanddanishrevenuec03r01ungrazedhighngbheavy100 in the database, doesn't have the >depth< column.
at org.openiot.gsn.storage.StorageManager.tableExists(StorageManager.java:238)
at org.openiot.gsn.storage.StorageManager.tableExists(StorageManager.java:261)
at org.openiot.gsn.VSensorLoader.loadPlugin(VSensorLoader.java:215)
at org.openiot.gsn.VSensorLoader.loadPlugin(VSensorLoader.java:170)
at org.openiot.gsn.VSensorLoader.run(VSensorLoader.java:125)
at java.lang.Thread.run(Thread.java:744)

A simple workaround is to delete the database and allow it to regenerate.

@ghost ghost assigned jpcik Jan 30, 2014
@sarni
Copy link
Member

sarni commented Mar 6, 2014

GSN doesn't support dynamic changes in virtual sensor fields (additions, deletions, changes of types). Adding such a feature can lead to side effects as virtual sensor structure is assumed to be static. One can think about a tool for editing/recycling virtual sensors. This tool should guarantee the consistency of both the schema and the data (including historical) in the database.

@nkef
Copy link
Member

nkef commented Mar 21, 2014

Could be forwarded to GSN community

@nkef nkef closed this as completed Mar 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants