-
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
Passing negative-1 MaxWaitTime
hangs DataMovementStatusRequest
indefinitely
#190
Comments
It hangs even when the NnfDataMovement resource in kubernetes shows that it's finished? Can you check that once you make it hang? This part of the API has always bothered me because I think a good API should always respond as quickly as possible to the client to minimize wait time and also confirm that nothing is wrong. It's like asking someone a question and they never respond. Is this something that you use a lot? |
How do I check that? Do you happen to have a test for this? Under what circumstances does it work? I was only attempting to use it because the documentation said that I could. I reverted back to polling with a one-second timer. But we have use cases where users just want to wait until the copy is done before proceeding. |
As it's running (and presumably hanging), you can query the NnfDataMovement resource in k8s. You won't be able to do this in your application unless the compute nodes have k8s access, but you could do it from somewhere that does. This is basically what the DataMovementStatusRequest is doing for you:
So if compute-node-1 was attached to rabbit-node-1 and the
A
I think this is the best way to do this. It ensures that the server is responding and isn't hung. |
The documentation says: "", but the data movement status request never call never returns.
The same call will work if I pass 1 second and continue to poll for between 5 and 10 seconds.
The text was updated successfully, but these errors were encountered: