-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fixing multinode state transition logic by register polling subscription in rpc client #14534
Merged
reductionista
merged 17 commits into
develop
from
BCFR-946/register-polling-subscription-in-rpc-client
Sep 30, 2024
Merged
Changes from 12 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
babf97b
polling subscription to be registered
huangzhen1997 626b7ac
adding changeset
huangzhen1997 28a140d
fix Subscribe new head
huangzhen1997 60f8f98
add test
huangzhen1997 0ea7431
update changeset
huangzhen1997 e64f0e1
fix lint
huangzhen1997 04bb7c5
fix deadlock and add unit test for http polling sub
huangzhen1997 14ff1ce
update changeset
huangzhen1997 7567604
adding sub closed check and remove import
huangzhen1997 a4317d9
add unit test coverage for http polling subscribeToHeads
huangzhen1997 a5f2359
Merge branch 'develop' into BCFR-946/register-polling-subscription-in…
huangzhen1997 f7acb2e
update test
huangzhen1997 77914f6
address comments part 1
huangzhen1997 94a6e32
clean
huangzhen1997 ea569a8
part 2
huangzhen1997 d580984
fix lint
huangzhen1997 84e9fac
fix lint
huangzhen1997 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"chainlink": patch | ||
--- | ||
|
||
- register polling subscription to avoid subscription leaking when rpc client gets closed. | ||
- add a temporary special treatment for SubscribeNewHead before we replace it with SubscribeToHeads. Add a goroutine that forwards new head from poller to caller channel. | ||
- fix a deadlock in poller, by using a new lock for subs slice in rpc client. | ||
#bugfix |
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.
a deadlock was caught by my new unit tests, and this fixes it.