-
Notifications
You must be signed in to change notification settings - Fork 549
make DBController tolerant to wrong framework request #4889
Comments
In previous design #4651, Is that good enough? As you cannot totally distingush between transient and permenant apiserver submission error. BTW, any real example for the apiserver submission error? |
If such error happens, I think the user may not able to stop the job. e.g. rest-server generates a wrong request object -> the request object is stored in db -> db controller tries to sync it to api server, but failed -> user stop the job, which will patch the I haven't found a real example. |
@hzy46 Valid point for the stop request cannot be satisfied, but we have to send stop to apiserver, because you do not know if the job really stopped (or not exist) in k8s. Considering this issue is most caused by our platform issues, under platform issues, everything may not work properly, so hang in |
If ApiServer non-404 error, can we mock a Failed Framework event to watcher? I think it could be a clean solution for this problem. |
No, non-404 error is too general, pls check above comments |
It should be:
|
That's ok now. Be sure that we are sure that the error MUST BE "caused by a invalid protocol", and then have 100% confidence to mock Fail job
|
Is there a specific error code from FC to indicate failed validation? |
It is the error code from ApiServer instead of FC. We can just use Status code 422 in the first stage. BTW, would better give one example of this issue, so we know the exact Status code of it |
An example found in #5093 . And I think status 413 should also be recorded. |
Work items for this issue:
|
The text was updated successfully, but these errors were encountered: