Don't stop workspace recovery when error is encountered#11446
Don't stop workspace recovery when error is encountered#11446amisevsk merged 2 commits intoeclipse-che:masterfrom
Conversation
Fix issue where encountering an exception while recovering workspaces on startup prevents recovery of further workspaces. Signed-off-by: Angel Misevski <amisevsk@redhat.com>
sleshchenko
left a comment
There was a problem hiding this comment.
Good fix!
You can make this PR even better by adding a unit test that second workspace will be recovered if the first one failed.
| return; | ||
| } catch (InfrastructureException e) { | ||
| LOG.error( | ||
| "An error occurred while attempted to recover runtimes using infrastructure '{}'. Reason: '{}'", |
There was a problem hiding this comment.
Le'ts rephrase this message to make it clear that error occurred during identities fetching.
|
ci-test |
|
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
|
@riuvshin I cannot express how I happy with |
|
@garagatyi this particular run |
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
|
I've added a test case to check that recovery continues past error. |
|
ci-test |
|
@amisevsk adding unit tests and changing the message usually doesn't require a new run of citest |
|
ci-build |
|
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
Fix issue where encountering an exception while recovering workspaces on startup prevents recovery of further workspaces.
What does this PR do?
Fix issue where encountering an exception while recovering workspaces on startup prevents recovery of further workspaces.
What issues does this PR fix or reference?
#11445
Testing
owner_idto 0 for some workspace in tableche_k8s_runtimelogs contain something like:
and workspaces that can be recovered are. Workspace that had
owner_idmodified is listed as "not running" in Che, and deployment is not cleaned up, but there's not much we can do there.Additionally, this will allow logging of all recovery errors, so this could be used to better track recovery bugs.