(WIP) WAII VISS: Add Apache IoTDB database to supported State Storage backends #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Currently WAII supports the SQLite and Redis databases as State Storage backends. Extend WAII to support Apache IoTDB database as well.
As we are using a git submodule for the WAII VISS Data Server sources and the changes are not yet upstreamed we must point to a fork that carries the changes. Marking this as a WIP to see if it can be upstreamed before merge which would avoid the upstream CDSP project having to change submodule git reps. Of course anyone wanting to try the code can checkout my PR and build it.
Detail
Development environment:
Runtime assumptions:
Connection config is currently a build time setting in the Service Manager header. Runtime configuration will be added in a later commit.Runtime configuration is now supported via iotdb-config.json.Sanity testing
Sanity testing was carried out within a Docker deployment of the COVESA Central Data Service Playground:
Setup
If you wish to try it then using the default configuration WAII makes the following runtime assumptions when accessing the DB:
Both are easy to create in the DB cli:
$ sudo docker exec -ti iotdb-service /iotdb/sbin/start-cli.sh -h iotdb-service
IoTDB > create database root.test2.dev1
4 Add some data into the timeseries: