vitessio / vitess

Vitess is a database clustering system for horizontal scaling of MySQL.
http://vitess.io
Apache License 2.0
18.55k stars 2.09k forks source link

GCS incorrect backup path #4622

Open swallowstalker opened 5 years ago

swallowstalker commented 5 years ago

Overview of the Issue

We're trying to backup vttablet using GCS with -gcs_backup_storage_root parameter. We didn't expect the backup files turns out to be in different path than we thought.

Reproduction Steps

  1. Deploy vttablet using GCS backup parameters:

    -gcs_backup_storage_root /
    -gcs_backup_storage_bucket 'gcs-backup'
    -gcs_backup_storage_project 'gcs-project'
  2. Run vt Backup <tablet alias>

  3. See where the directory are (obviously not in root path on bucket)

With little experiment we've found the variant of GCS storage root:

`-gcs_backup_storage_root /` the dir created is `///other/0...`
`-gcs_backup_storage_root /something` the dir created is `//something/other/0...`
`-gcs_backup_storage_root something` the dir created is `/something/other/0...` (correct one)

So we need to do it without any slash to dirname something

Image version

vitess/v3.0:lite
deepthi commented 5 years ago

@swallowstalker is the last way of doing it working for your purpose or is this blocking you from using GCS?