This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
backend: implement disk quota #493
Merged
Merged
Changes from 38 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
cec3d30
common: copied the GetStorageSize function from DM
kennytm 147851e
common: recognize multierr in IsRetryableError()
kennytm bd02b59
restore: refactor runPeriodicActions
kennytm 360c491
config: fix test failure on Windows
kennytm 3a605bc
*: implement disk quota
kennytm 6afb02d
backend: split the disk size and mem size metrics
kennytm 657adea
backend,restore: refactor, move the postProcessLock into the backend
kennytm 1d7a411
go.mod1: update
kennytm 95891e1
backend: introduce a conversion factor between memtable and disk size
kennytm 7bf5fbf
backend: force the aes-256-cbc before anyone notices ;)
kennytm cc65433
tests: split FailAfterWriteRows into two failpoints
kennytm dad23f5
tests: add disk-quota test
kennytm 2575452
Merge branch 'master' into kennytm/disk-quota
kennytm 626f480
backend/local: replace the semaphore by a regular mutex
kennytm 1ed6164
tests/disk_quota: add that 2-second loop for SET GLOBAL
kennytm 4c6f595
Apply suggestions from code review
kennytm 958531e
config: elaborate the "insufficient disk space" error
kennytm 369b6f4
restore: addressed comments
kennytm 3f5034e
Merge branch 'master' into kennytm/disk-quota
kennytm 3dbcd9a
Merge branch 'master' into kennytm/disk-quota
kennytm c2abaf6
backend/local: do not reopen if resetting a closed engine
kennytm 6312a4c
local: protect against concurrent flush + reset
kennytm c03837d
Merge branch 'master' into kennytm/disk-quota
kennytm 0bd3d11
backend/local: seems have to treat everything as isImporting
kennytm 50b6cf4
Merge branch 'master' into kennytm/disk-quota
kennytm 73b7d9a
backend/local: store the sync.Mutex separately from the engines
kennytm 5c5bd68
Merge branch 'master' into kennytm/disk-quota
kennytm 9e78a25
Merge branch 'master' into kennytm/disk-quota
kennytm e66c73f
*: fix tests
kennytm cd8c3cc
backend: limit the SST size of the LocalWriters
kennytm 11fa643
backend/local: fix FlushAllEngines being no op
kennytm 8b51097
backend/local: use go.uber.org/atomic instead of sync/atomic
kennytm 3af075d
backend/local: refactor LocalWriter to clean up the logic
kennytm dc5b5b7
Merge branch 'master' into kennytm/disk-quota
kennytm 66a250c
tests: use a unique sorted-kv-dir per test
kennytm 6dd5ef3
backend/local: fixed some doc comments
kennytm ca808b2
backend: addressed comments
kennytm e401ffe
backend/local: just always save meta every time we flush
kennytm 6309d13
Merge branch 'master' into kennytm/disk-quota
kennytm 98e02a7
backend: addressed comments
kennytm 93beae8
Merge branch 'master' into kennytm/disk-quota
ti-srebot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it mean? Do you want to sort all importing engine before other engines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. We can't import engines that are already importing, but their size do count towards the disk quota.