Closed buddy-yao closed 2 years ago
Do you want to contribute this? This is not a critical issue. We don't check this in all database implementations, such as PostgreSQL, MySQL, TiDB. Of course, it is fine to add if you want.
Hi @wu-sheng, can I contribute here? This would be my first contribution. I think I got what is required; additional check in all DBClients (like this: https://github.com/apache/skywalking/blob/f61dff9a9f1d1f8ddd11c31f039e540521479d36/oap-server/server-storage-plugin/storage-influxdb-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/influxdb/InfluxClient.java) to check if the the DB property (in this case: InfluxDB influx) is already initialized or not.(if it is then log some info and return?)
Basically you can, just should notice, whether database creation could require more parameters, and only create if it missed.
No update in months.
Search before asking
Description
I am using InfluxDB as the storage, the InFluxDB is provided by cloud provider, it does't has admin privilege. If SkyWalking try to create database, it will fail. I think, SkyWalking should check if the database exists first, instead of creating it directly.
Use case
When SkyWalking using InfluxDB as the storage, SkyWalking should check if the database exists, if not, then try create database.
Related issues
No response
Are you willing to submit a PR?
Code of Conduct