Skip to content
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

Merged
merged 2 commits into from
Mar 10, 2017
Merged

Don't create a snapshot if agent lost connection #4325

merged 2 commits into from
Mar 10, 2017

Conversation

vzhukovs
Copy link
Contributor

@vzhukovs vzhukovs commented Mar 6, 2017

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

@vzhukovs vzhukovs added kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/ide labels Mar 6, 2017
@vzhukovs vzhukovs self-assigned this Mar 6, 2017
@vzhukovs vzhukovs requested a review from vparfonov March 6, 2017 14:27
@codenvy-ci
Copy link

Build finished.
Build success. $BUILD_URL

@codenvy-ci
Copy link

@@ -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);
Copy link
Contributor

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@codenvy-ci
Copy link

Build finished.
Build # 2132 - FAILED

Please check console output at $BUILD_URL to view the results.

@codenvy-ci
Copy link

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>
@vzhukovs
Copy link
Contributor Author

vzhukovs commented Mar 9, 2017

ci-build

@vzhukovs
Copy link
Contributor Author

vzhukovs commented Mar 9, 2017

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?
Copy link
Contributor

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

Copy link
Contributor Author

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>
@codenvy-ci
Copy link

Build finished.
Build success. $BUILD_URL

@codenvy-ci
Copy link

@vzhukovs vzhukovs merged commit 02cb231 into master Mar 10, 2017
@vzhukovs vzhukovs deleted the che#3805 branch March 10, 2017 07:18
@vzhukovs vzhukovs added severity/P2 Has a minor but important impact to the usage or development of the system. and removed severity/P1 Has a major impact to usage or development of the system. labels Mar 10, 2017
@vzhukovs vzhukovs added this to the 5.5.0 milestone Mar 10, 2017
@JamesDrummond JamesDrummond mentioned this pull request Mar 17, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants