Skip to content

Disable debug mode for wsagent by default#11475

Merged
sleshchenko merged 3 commits intoeclipse-che:masterfrom
sleshchenko:wsagentInstallerDebug
Oct 4, 2018
Merged

Disable debug mode for wsagent by default#11475
sleshchenko merged 3 commits intoeclipse-che:masterfrom
sleshchenko:wsagentInstallerDebug

Conversation

@sleshchenko
Copy link
Copy Markdown
Member

@sleshchenko sleshchenko commented Oct 4, 2018

What does this PR do?

It contains two separate changes:

  1. Add an ability to configure debug mode for wsagent with env vars. There are the following env vars:
  • WSAGENT_DEBUG - to enable or disable JPDA mode for wsagent tomcat, false by default;
  • WSAGENT_DEBUG_PORT - to configure JPDA port, 4403 by default;
  • WSAGENT_DEBUG_SUSPEND - to configure JPDA suspend mode, n by default.
  1. Disables debug mode for wsagent by default. It is needed to remove debug server as well since bootstrapper wait until all servers ports will be busy.

There are two reasons to disable wsagent debug mode by default:

  1. It is needed because debug mode is not a thing that should be enabled by default.
  2. Debug mode produces STDERR which is logged in Che Servers logs and published to clients but it is not really an issue which leads to agent failing. Here is a error line which is mentioned before
    Debugger failed to attach: handshake failed - connection prematurally closed

What issues does this PR fix or reference?

#10833

Release Notes

Docs PR

N/A

@sleshchenko sleshchenko added the kind/task Internal things, technical debt, and to-do tasks to be performed. label Oct 4, 2018
@sleshchenko sleshchenko self-assigned this Oct 4, 2018
@sleshchenko sleshchenko requested review from a user, garagatyi and skabashnyuk October 4, 2018 09:24
@sleshchenko sleshchenko requested a review from tolusha as a code owner October 4, 2018 09:24
@benoitf benoitf added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Oct 4, 2018
@sleshchenko
Copy link
Copy Markdown
Member Author

ci-test

@riuvshin
Copy link
Copy Markdown
Contributor

riuvshin commented Oct 4, 2018

Results of automated E2E tests of Eclipse Che Multiuser on OCP:
Build details
Test report
docker image: eclipseche/che-server:11475
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@sleshchenko sleshchenko force-pushed the wsagentInstallerDebug branch from 092fcbd to c8beed6 Compare October 4, 2018 15:23
@sleshchenko sleshchenko merged commit 409d4c1 into eclipse-che:master Oct 4, 2018
@sleshchenko sleshchenko deleted the wsagentInstallerDebug branch October 4, 2018 15:44
nickboldt pushed a commit to nickboldt/che that referenced this pull request Oct 5, 2018
nickboldt pushed a commit to nickboldt/che that referenced this pull request Oct 5, 2018
nickboldt pushed a commit to nickboldt/che that referenced this pull request Oct 5, 2018
nickboldt pushed a commit to nickboldt/che that referenced this pull request Oct 5, 2018
@benoitf benoitf added this to the 6.13.0 milestone Oct 9, 2018
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/task Internal things, technical debt, and to-do tasks to be performed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants