-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
[stats] Rewrite stat management to use single threaded event loop #8815
Open
max-hoffman
wants to merge
53
commits into
main
Choose a base branch
from
max/stats-event-loop
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 52 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
796564b
[stats] event loop
max-hoffman 5034635
more progress
max-hoffman 8de66e4
basic scheduler test working
max-hoffman d6882e4
analyze
max-hoffman 4c5bd3f
add/drop hooks
max-hoffman c2876de
gc
max-hoffman 4d8d8f0
delete an alter
max-hoffman bb6ab3c
drop index and table
max-hoffman 542bc40
fix other tests
max-hoffman 14cf9fd
branch management
max-hoffman d949b3d
starter for kv
max-hoffman 397aaa9
gc and refactor maintanance
max-hoffman 16ff4ff
fix bucket doubling
max-hoffman 1d04f74
delete log
max-hoffman 2be37c1
better bucket counting
max-hoffman ee16cf1
test for disk round trip
max-hoffman d18b524
more prolly stats gc tests
max-hoffman ee2286b
rotate backing stats db
max-hoffman 4a91332
progress towards swapping old for new, deleting old code
max-hoffman 128efd5
fix gc bucket overflow
max-hoffman 347d3f5
test for gc overflow
max-hoffman 9bdb958
org and closers
max-hoffman d503c4e
save progress update
max-hoffman 76a45ff
finally get first two bats running
max-hoffman 373aa9a
startup bound hash issue
max-hoffman c56dd06
rewrite GC to be synchronous, fix more bugs
max-hoffman 14eae29
fix session freshness
max-hoffman 6ab5193
fix branch gc
max-hoffman 474a85f
cache writes and gc are serialized
max-hoffman d8e6c09
fix gc/branch update dropped hashes
max-hoffman 31d3780
fix gc race, doubling race, jobs race
max-hoffman c2c4f05
fix more races
max-hoffman e23cf1f
docs
max-hoffman 4da767b
convert bats to script tests
max-hoffman 8d3c07f
more tests, purge/stop
max-hoffman 6578011
validate
max-hoffman aafeec7
docs
max-hoffman 6dd1fb4
some PR cleanup
max-hoffman 4635cfa
more cleanup
max-hoffman ec8ed11
stash for pull
max-hoffman c95fcda
merge
max-hoffman 2e424eb
fix bucket hash conflicts
max-hoffman e849f27
Fix more collection bugs.
max-hoffman 8224b09
bump, timer proc
max-hoffman 43e739d
more test fixes
max-hoffman b209532
cache bats changes
max-hoffman 043c174
merge main
max-hoffman 7291054
Another deadlock
max-hoffman 40cdce0
delete comment
max-hoffman d040cfa
fmt
max-hoffman 6df2999
no read replica stats
max-hoffman fe72f62
fix plan tests
max-hoffman 1be0f49
branch qualified analyze fix
max-hoffman 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
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
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.
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.
Feels wrong to tie this to the server, instead of engine.SqlEngine doing it. What's the logic behind only doing this restart when we're in server context?