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

Upgrading directly from 0.9.6.1 to 0.11.0 fails #6092

Closed
gunnaraasen opened this issue Mar 22, 2016 · 2 comments
Closed

Upgrading directly from 0.9.6.1 to 0.11.0 fails #6092

gunnaraasen opened this issue Mar 22, 2016 · 2 comments
Milestone

Comments

@gunnaraasen
Copy link
Member

Steps to reproduce

  1. Install 0.9.6.1 and run influx_stress
  2. Stop InfluxDB then restart and stop it again to force a WAL flush
  3. Install 0.11.0 and run:
$ go/bin/influx_tsm -backup .influxdb-backup .influxdb/data

b1 and bz1 shard conversion.
-----------------------------------
Data directory is:                  /Users/gunnaraasen/.influxdb/data
Backup directory is:                /Users/gunnaraasen/.influxdb-backup
Databases specified:                all
Database backups enabled:           yes
Parallel mode enabled (GOMAXPROCS): no (4)


Found 3 shards that will be converted.

Database    Retention   Path                            Engine  Size
_internal   monitor     /Users/gunnaraasen/.influxdb/data/_internal/monitor/2   bz1 131072
stress      default     /Users/gunnaraasen/.influxdb/data/stress/default/1  bz1 2147483648
stress      default     /Users/gunnaraasen/.influxdb/data/stress/default/3  bz1 131072

These shards will be converted. Proceed? y/N: y
Conversion starting....
Backing up 2 databases...
2016/03/22 12:16:44.438388 Backup of database '_internal' started
2016/03/22 12:16:44.438388 Backup of database 'stress' started
2016/03/22 12:16:44.439063 Backing up file /Users/gunnaraasen/.influxdb/data/_internal/monitor/2
2016/03/22 12:16:44.439252 Backing up file /Users/gunnaraasen/.influxdb/data/stress/default/1
2016/03/22 12:16:44.440346 Database _internal backed up (1.983098ms)
2016/03/22 12:16:47.652886 Backing up file /Users/gunnaraasen/.influxdb/data/stress/default/3
2016/03/22 12:16:47.653766 Database stress backed up (3.215429137s)
2016/03/22 12:16:47.653851 Starting conversion of shard: /Users/gunnaraasen/.influxdb/data/_internal/monitor/2
2016/03/22 12:16:47.653863 Starting conversion of shard: /Users/gunnaraasen/.influxdb/data/stress/default/1
2016/03/22 12:16:47.654028 Starting conversion of shard: /Users/gunnaraasen/.influxdb/data/stress/default/3
2016/03/22 12:16:47.656476 Failed to convert /Users/gunnaraasen/.influxdb/data/stress/default/3: Conversion of /Users/gunnaraasen/.influxdb/data/stress/default/3 failed: unsupported value type *tsdb.Value

Note that rolling back to 0.10.3, converting shards, and then upgrading to 0.11.0 again does work.

cc/ @joelegasse

@joelegasse
Copy link
Contributor

I don't think there's much we can do about this. The code to support b1 and bz1 doesn't exist anymore, except for a stripped-down version required to convert shards in the 0.10 releases.

@ZhukovAlexey
Copy link

https://docs.influxdata.com/influxdb/v0.11/administration/upgrading/

To upgrade to InfluxDB 0.11, you must be on version 0.10 and all shards must be in TSM format (the default storage engine starting with InfluxDB 0.10).

So there's no straightforward way to upgrade from 0.9.X to 0.11.

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