-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Don't create a snapshot if agent lost connection #4325
Conversation
Build finished. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2111/ |
@@ -204,8 +198,8 @@ private void started() { | |||
private void checkStateOfWsAgent(WsAgentHealthStateDto agentHealthStateDto) { | |||
final int statusCode = agentHealthStateDto.getCode(); | |||
final String infoWindowTitle = "Workspace Agent Not Responding"; | |||
final ConfirmCallback stopCallback = new StopCallback(false); | |||
final ConfirmCallback stopAndReloadCallback = new StopCallback(true); | |||
final ConfirmCallback stopCallback = new StopCallback(false, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add named variable, because hard to understand StopCallback(false, true)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Build finished. Please check console output at $BUILD_URL to view the results. |
Build # 2132 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/2132/ to view the results. |
Signed-off-by: Vladyslav Zhukovskii <vzhukovskii@codenvy.com>
ci-build |
QA didn't reveal any regressions |
@@ -69,7 +69,7 @@ | |||
private final WorkspaceServiceClient workspaceServiceClient; | |||
private final LoaderPresenter loader; | |||
//not used now added it for future if it we will have possibility check that service available for client call | |||
private final List<RestServiceInfo> availableServices; | |||
private final List<RestServiceInfo> availableServices; //TODO do we really need this variable? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
Signed-off-by: Vladyslav Zhukovskii <vzhukovskii@codenvy.com>
Build finished. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2149/ |
* Don't create a snapshot if agent lost connection Signed-off-by: Vladyslav Zhukovskii <vzhukovskii@codenvy.com> * Delete redundant code Signed-off-by: Vladyslav Zhukovskii <vzhukovskii@codenvy.com>
What does this PR do?
Disable creating a snapshot in case if workspace agent lost connection.
When workspace agent loses connection, we currently allow user to reload entire page to allow Che to restore web socket connections. Sometimes, during the restart Che could create a snapshot for a while. So this PR propose to disable snapshot creating and instant instance reloading.
What issues does this PR fix or reference?
#3805
Changelog
Disable creating a snapshot in case if workspace agent lost connection.
Release Notes
Disable creating a snapshot in case if workspace agent lost connection.
Docs PR
N/A