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

feat: reimplement influx backup using new APIs #116

Merged
merged 6 commits into from
Jun 11, 2021
Merged

Conversation

danxmoran
Copy link
Contributor

@danxmoran danxmoran commented Jun 10, 2021

Closes #6
Closes #113

Tests aren't comprehensive, but I think they cover the most interesting pieces of the logic.

@williamhbaker williamhbaker self-requested a review June 11, 2021 13:18
return fmt.Errorf("failed to download metadata snapshot: %w", err)
}

kvName := fmt.Sprintf("%s.bolt", c.baseName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are setting a base name on the server as well and including it with the response (https://github.com/influxdata/influxdb/blob/40c7d694154e75103f614cc15fdf329cdb5c0bcc/http/backup_service.go#L163). Looking at the client implementation, I think it's better to set it here though - easier to make sure all the backed up files match.

Unless you need it for something on the client (I don't think so?), at some point we might want to remove setting the filename on the server response, just to keep things from being confusing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I think removing it would make sense. I opened an issue to support gzipping the response on the server-side, I'll add a note about dropping the file names there as well.

Copy link
Contributor

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers, looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants