-
Notifications
You must be signed in to change notification settings - Fork 4
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
🐞 [Bug]: wrong free ips node filtering #808
Comments
So how i understand it it goes as follows:
|
|
yeah, if u don't handle chain events directly and only changes to the public_ip table then i think it should cover all changes. How do u handle changes to public_ips table ? do you re-aggregate the entire table to update the cache, or how is it done? |
no, for
|
I don't fully understand this code. I don't have deep experience with SQL. I would recommend to document the sql procedure and get someone to take another look. |
Update
|
Update
|
issue still happening on mainnet threefoldtech/tfgrid-sdk-ts#2300 (comment) |
firstly i suspected it is a problem with the triggers as it has happened before. but checked the two ips tables and they are on sync. but checking the data on the chain found un sync between the graphql processor and the chain. i commented on an issue there threefoldtech/tfchain_graphql#157 (comment) |
summing up what Sameh explained in the mentioned issue out of sync stats could happen:
since trigger to update the public_ip cache table is good, i think there is no more work we can do from the proxy side. |
What happened?
filtering the nodes with
free_ips
returns node on free farm https://gridproxy.dev.grid.tf/nodes?free_ips=1however checking freefarm ips found them all reserved with a contract id https://gridproxy.dev.grid.tf/farms?farm_id=1
which network/s did you face the problem on?
Dev
Twin ID/s
No response
Node ID/s
No response
Farm ID/s
No response
Contract ID/s
No response
Relevant log output
none
The text was updated successfully, but these errors were encountered: