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

Resolves #165 - implemented out of space check #174

Merged
merged 11 commits into from
May 12, 2021

Conversation

s4kibs4mi
Copy link
Contributor

@s4kibs4mi s4kibs4mi commented May 2, 2021

Space is not indefinite and running out of space may make the application doing weird behavior. To prevent that here is the implementation. It basically does a check on the data feed to see if there is enough space to store. It will also put a warning value with API response about out of space warning.

@s4kibs4mi s4kibs4mi added the backend Mostly go code label May 2, 2021
@s4kibs4mi s4kibs4mi requested a review from petethepig May 2, 2021 09:20
@s4kibs4mi s4kibs4mi self-assigned this May 2, 2021
@CLAassistant
Copy link

CLAassistant commented May 2, 2021

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot requested a review from Rperry2174 May 2, 2021 09:20
@s4kibs4mi s4kibs4mi requested a review from petethepig May 2, 2021 20:52
@codecov
Copy link

codecov bot commented May 4, 2021

Codecov Report

Merging #174 (b374683) into main (5372d78) will decrease coverage by 0.30%.
The diff coverage is 46.16%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #174      +/-   ##
==========================================
- Coverage   57.33%   57.03%   -0.29%     
==========================================
  Files          72       73       +1     
  Lines        2896     2960      +64     
==========================================
+ Hits         1660     1688      +28     
- Misses       1100     1129      +29     
- Partials      136      143       +7     
Impacted Files Coverage Δ
pkg/config/config.go 0.00% <0.00%> (ø)
pkg/server/render.go 0.00% <ø> (ø)
pkg/storage/storage.go 71.36% <33.34%> (-0.60%) ⬇️
pkg/cli/cli.go 55.92% <43.75%> (-1.82%) ⬇️
pkg/util/bytesize/bytesize.go 40.00% <52.18%> (+40.00%) ⬆️
pkg/util/disk/usage.go 60.00% <60.00%> (ø)
pkg/analytics/analytics.go 83.34% <0.00%> (-3.03%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5372d78...b374683. Read the comment docs.

pkg/util/resource_usages/disk_usages.go Outdated Show resolved Hide resolved
pkg/util/resource_usages/disk_usages_test.go Outdated Show resolved Hide resolved
pkg/util/resource_usages/disk_usages.go Outdated Show resolved Hide resolved
pkg/util/resource_usages/disk_usages.go Outdated Show resolved Hide resolved
pkg/server/render.go Outdated Show resolved Hide resolved
pkg/server/ingest.go Outdated Show resolved Hide resolved
pkg/config/config.go Outdated Show resolved Hide resolved
@s4kibs4mi s4kibs4mi requested a review from petethepig May 7, 2021 08:12
Copy link
Member

@petethepig petethepig left a comment

Choose a reason for hiding this comment

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

Merging

@petethepig petethepig merged commit 3628793 into main May 12, 2021
@petethepig petethepig deleted the feature/handle-lack-of-disk-space branch May 12, 2021 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Mostly go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants