-
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
influxd restore fails for a database name containing periods #16753
Comments
It's pretty clear from the influxdb/cmd/influxd/restore/restore.go Lines 443 to 451 in ff383cd
Because the |
There's probably a second bug in the error-handling here, the |
I have this problem too restoring Influx 1.8 databases with periods:
I need to restore a full backup into a new server, "-portable" also not works for me because is not backing up users. Is there any workaround? Regards |
If you have a database name containing periods, then it is possible to backup the database, but it is not possible to restore the backup.
Steps to reproduce:
Create a database with a
.
in the name, take a backup, and attempt to restore itCREATE DATABASE "hcloud-infra.telegraf"
influxd backup -host infra-influxdb1:8088 -database hcloud-infra.telegraf hcloud-infra.telegraf
influxd restore -online -host infra-influxdb1:8088 -db hcloud-infra.telegraf -newdb 'hcloud-infra.telegraf-restore' hcloud-infra.telegraf
Note that the backup shard files will contain an extra
.
, because the database name is included at the start of the filename:Expected behavior:
The database shards should be restored to a new
hcloud-infra.telegraf-restore
database.Actual behavior:
The metastore snapshot is succesfully restored and the new
hcloud-infra.telegraf-restore
database is created, but the shard restore fails and crashes with an error:Environment info:
Linux 3.10.0-1062.12.1.el7.x86_64 x86_64
InfluxDB v1.7.8 (git: 1.7 ff383cdc0420217e3460dabe17db54f8557d95b6)
influxdb:1.7.8
imageThe text was updated successfully, but these errors were encountered: