-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix(conn): conn to have state machine #3559
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
Open
ndyakov
wants to merge
62
commits into
master
Choose a base branch
from
ndyakov/state-machine-conn
base: master
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.
+3,127
−568
Open
Changes from 19 commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
27591cd
wip
ndyakov 606264e
wip, used and unusable states
ndyakov 0a75466
Merge remote-tracking branch 'origin/master' into ndyakov/state-machi…
ndyakov 5721512
polish state machine
ndyakov 663a60e
correct handling OnPut
ndyakov 7526e67
better errors for tests, hook should work now
ndyakov 92433e6
fix linter
ndyakov 21bd243
improve reauth state management. fix tests
ndyakov 3f29463
Update internal/pool/conn.go
ndyakov de2f8ba
Update internal/pool/conn.go
ndyakov 94fa920
better timeouts
ndyakov cfcf37d
empty endpoint handoff case
ndyakov 3a53e1b
fix handoff state when queued for handoff
ndyakov c4ed467
try to detect the deadlock
ndyakov 9ad6288
try to detect the deadlock x2
ndyakov 03b0003
delete should be called
ndyakov 84e856e
improve tests
ndyakov a2c7a25
fix mark on uninitialized connection
ndyakov 23d0e0f
Merge branch 'master' into ndyakov/state-machine-conn
ndyakov ffbe1e5
Update internal/pool/conn_state_test.go
ndyakov 65a6ece
Update internal/pool/conn_state_test.go
ndyakov 0964dcc
Update internal/pool/pool.go
ndyakov bc42307
Update internal/pool/conn_state.go
ndyakov 33696fb
Update internal/pool/conn.go
ndyakov 13a4b3f
fix error from copilot
ndyakov 07e665f
address copilot comment
ndyakov 080a33c
fix(pool): pool performance (#3565)
ndyakov 9448059
initConn sets IDLE state
ndyakov b862bf5
Merge remote-tracking branch 'origin/master' into ndyakov/state-machi…
ndyakov d5db534
fix precision of time cache and usedAt
ndyakov dcd8f9c
allow e2e tests to run longer
ndyakov f1c8884
Merge branch 'master' into ndyakov/state-machine-conn
ndyakov 0752aec
Fix broken initialization of idle connections
ndyakov 54281d6
optimize push notif
ndyakov 600dfe2
100ms -> 50ms
ndyakov dccf01f
use correct timer for last health check
ndyakov 7201275
verify pass auth on conn creation
ndyakov 62eecaa
fix assertion
ndyakov 43eeae7
fix unsafe test
ndyakov 2965e3d
fix benchmark test
ndyakov 59da35b
improve remove conn
ndyakov 09a2f07
re doesn't support requirepass
ndyakov fc2da24
wait more in e2e test
ndyakov 5f0b58b
Merge branch 'master' into ndyakov/state-machine-conn
ndyakov d207749
flaky test
ndyakov ef3e06f
Merge remote-tracking branch 'origin/master' into ndyakov/state-machi…
ndyakov 5fa97c8
add missed method in interface
ndyakov d91800d
fix test assertions
ndyakov c5ca81d
Merge branch 'master' into ndyakov/state-machine-conn
ndyakov a39dd4c
silence logs and faster hooks manager
ndyakov c3dbc8c
address linter comment
ndyakov 3b65139
Merge branch 'master' into ndyakov/state-machine-conn
ndyakov 95af71c
Merge branch 'master' into ndyakov/state-machine-conn
ndyakov 18b46a1
fix flaky test
ndyakov 4673c62
use read instad of control
ndyakov 2b8023c
use pool size for semsize
ndyakov 41024f7
CAS instead of reading the state
ndyakov 3cb5ab3
Merge branch 'master' into ndyakov/state-machine-conn
ndyakov 9466c1c
preallocate errors and states
ndyakov cca0382
preallocate state slices
ndyakov c412436
Merge branch 'master' into ndyakov/state-machine-conn
ndyakov edf6bd7
fix flaky test
ndyakov 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 hidden or 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 hidden or 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 hidden or 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.
Can we preallocate this case too?
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.
resolved