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

Fix concurrency issue with NodePeer update #8851

Merged
merged 60 commits into from
Jun 3, 2024
Merged

Conversation

shubham3121
Copy link
Member

@shubham3121 shubham3121 commented May 23, 2024

Description

  • Now, we are running peers health check periodically in background task (Peer health checks #8679). This PR tries to get the list of online domains using the results of this peers health check feature instead of trying to login the domains as guest clients to check if they are online every time we call sy.domains.
  • Fix concurrency issues when updating the same objects in the document store
  • Using ParitialSyftObject for update

khoaguin and others added 30 commits May 9, 2024 11:03
…e a guess client at a gateway, just ignore it and move on to another one

Co-authored-by: Shubham Gupta <[email protected]>
- improve repr for domain and network registry to show online domains and networks
- `sy.gateways` and `sy.domains` work with python webserver nodes
- add a wait in `gateway_local_test` before checking for online domains

Co-authored-by: Shubham Gupta <[email protected]>
- add some wait times before checking node connection status
…default

- update k8s integration tests accordingly
- move skip test to the test file rather than in `tox.ini`
updates ping status related fields (in backgroudn threads) instead of
the whole peer object to avoid outdated node routes
(and possibly also other fields) issues
@khoaguin khoaguin changed the title [WIP] Fix concurrency issue with NodePeer update Fix concurrency issue with NodePeer update May 23, 2024
@khoaguin
Copy link
Member

image

@khoaguin khoaguin force-pushed the node-peer-partial-update branch from 5387757 to cd44055 Compare May 28, 2024 13:08
khoaguin and others added 5 commits June 3, 2024 13:09
@shubham3121 shubham3121 merged commit 1239eed into dev Jun 3, 2024
26 checks passed
@shubham3121 shubham3121 deleted the node-peer-partial-update branch June 3, 2024 13:07
@shubham3121
Copy link
Member Author

Nice work @khoaguin !!! 🎉 🔥 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants