-
Notifications
You must be signed in to change notification settings - Fork 3
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
Non-termination of identities discover #203
Comments
In my testing it processes the identity just fine. However I don't see any node claims being queued up. That is a problem for MatrixAI/Polykey#737. Right now the conditions that cause this to hang are very unclear. There are two possiblilities for this happening.
In either case, I can't confirm anything without being able to replicate the problem. |
After some digging I found out two thing.
As to why it's infinitely looping I need to dig deeper. I think @brynblack only has multiple newer style claims but I'm not certain about that. What I do know is it's processing a page of claims over and over again and seeing only the same claim over and over again. |
Hm that's strange, how did u make it infinitely loop? I'm gonna work on the pagination system a bit, see if u can reproduce it after the changes |
The reason why this was never caught in a test, was because the Because the logic only sets the nextPaginationToken when it is not null, we end up looping on the last page. By making the With the fixes applied, the timeout goes away: This proves that this was the problem. |
Ok, yeah, that pretty much proves it. While we're here check some edge cases such as failing to process a page, or a single claim within that page. |
If you're talking abt failing to fetch a page of claims, or specific claim, This will really be done to all errors except for the specific |
There's some overlap here with the invalid claims format problem we're having as well. So what happens if one of the claims is badly formatted here? Do we fail to process any further claims after that? Can we add some more robust handling of this or event tests demonstrating that case? |
Specification
We've found during testing that in some cases running
polykey identities discover <identitiy> --monitor
fails to make any progress or terminate properly.After a while this will time out the RPC. That makes sense since we have to stream data for the timeout period. We may have to look into increasing the timeout for this command or having the RPC time out with a more descriptive error than a RPC timeout.
Additional context
Tasks
The text was updated successfully, but these errors were encountered: