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

[MM-55223] add basic dump mechansim #8

Merged
merged 6 commits into from
Jan 17, 2024
Merged

[MM-55223] add basic dump mechansim #8

merged 6 commits into from
Jan 17, 2024

Conversation

isacikgoz
Copy link
Member

Summary

WIP: Create a tsdb dump and write zip file to the remote storage

Ticket Link

https://mattermost.atlassian.net/browse/MM-55223

@isacikgoz isacikgoz added the 2: Dev Review Requires review by a core committer label Dec 22, 2023
@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2023

Codecov Report

Attention: 204 lines in your changes are missing coverage. Please review.

Comparison is base (37cd3cb) 13.59% compared to head (87cb007) 13.11%.

Files Patch % Lines
server/copy.go 27.72% 66 Missing and 7 partials ⚠️
server/dump.go 0.00% 64 Missing ⚠️
server/api.go 0.00% 60 Missing ⚠️
server/plugin.go 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
- Coverage   13.59%   13.11%   -0.48%     
==========================================
  Files           6        8       +2     
  Lines         456      686     +230     
==========================================
+ Hits           62       90      +28     
- Misses        385      580     +195     
- Partials        9       16       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@isacikgoz
Copy link
Member Author

The interval selection screen is something like this:

Screen.Recording.2024-01-09.at.21.36.45.mov

@isacikgoz isacikgoz marked this pull request as ready for review January 12, 2024 11:12
server/api.go Outdated Show resolved Hide resolved
server/copy.go Outdated Show resolved Hide resolved
server/const.go Outdated Show resolved Hide resolved
server/dump.go Outdated Show resolved Hide resolved
server/dump.go Outdated Show resolved Hide resolved
server/dump.go Outdated Show resolved Hide resolved
server/copy.go Outdated Show resolved Hide resolved
Copy link
Member

@cpoile cpoile left a comment

Choose a reason for hiding this comment

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

Nice work @isacikgoz!

Comment on lines +71 to +72
if ok, err := b.FileExists(src); !ok {
return nil
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if it's important, but it's possible for FileExists to return false with a "unable to know if file %s exists` error, but then we wouldn't return the error here -- is that ok?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, it's actually okay as we will continue to the loop where we call the copy function.

@isacikgoz isacikgoz added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Jan 17, 2024
@isacikgoz isacikgoz merged commit 88b7574 into master Jan 17, 2024
4 checks passed
@isacikgoz isacikgoz deleted the dumps branch January 17, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants