[jbosstools-issues] [JBoss JIRA] (JBIDE-21857) Hot code replacement doesn't work on OpenShift
Andre Dietisheim (JIRA)
issues at jboss.org
Wed Jan 25 08:40:00 EST 2017
[ https://issues.jboss.org/browse/JBIDE-21857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andre Dietisheim updated JBIDE-21857:
-------------------------------------
Steps to Reproduce:
EXEC: Create a new OpenShift EAP 6.4 application: Open New OpenShift application wizard, select eap64-basic-s2i template, proceed to next wizard page, change CONTEXT_DIR param to helloworld, click Finish and let import application to your workspace once you are prompted.
EXEC: Create a new OpenShift 3 server adapter for the application.
ASSERT: There is a started server adapter for the application in Servers view.
EXEC: Restart server adapter in debug mode.
ASSERT: Server adapter is in debug mode, synchronized.
EXEC: Rename method or add a field to class (e.g. in HelloService) = do HCR incompatible change in class structure.
EXEC: Save editor.
ASSERT: Dialog warning about failed HCR is shown.
EXEC: Click button Restart buttons in Hot Code Replace Failed dialog.
ASSERT: Module is deployed on a remote server.
RESULT: Debugger is out of sync.
EXPECTED RESULT: Debugger is back to sync.
EXEC: Make a HCR compatible change (in method body e.g. change returned message).
EXEC: Save editor.
RESULT: Hot Code Replace Failed dialog is shown.
EXPECTED RESULT: Change is propagated successfully, there is no HCR Failed dialog and debugger is in sync.
was:
EXEC: Create a new OpenShift EAP 6.4 application. Open New OpenShift application wizard, select eap64-basic-s2i template, proceed to next wizard page, change CONTEXT_DIR param to helloworld, click Finish and let import application to your workspace once you are prompted.
EXEC: Create a new OpenShift 3 server adapter for the application.
ASSERT: There is a started server adapter for the application in Servers view.
EXEC: Restart server adapter in debug mode.
ASSERT: Server adapter is in debug mode, synchronized.
EXEC: Rename method or add a field to class (e.g. in HelloService) = do HCR incompatible change in class structure.
EXEC: Save editor.
ASSERT: Dialog warning about failed HCR is shown.
EXEC: Click button Restart buttons in Hot Code Replace Failed dialog.
ASSERT: Module is deployed on a remote server.
RESULT: Debugger is out of sync.
EXPECTED RESULT: Debugger is back to sync.
EXEC: Make a HCR compatible change (in method body e.g. change returned message).
EXEC: Save editor.
RESULT: Hot Code Replace Failed dialog is shown.
EXPECTED RESULT: Change is propagated successfully, there is no HCR Failed dialog and debugger is in sync.
> Hot code replacement doesn't work on OpenShift
> ----------------------------------------------
>
> Key: JBIDE-21857
> URL: https://issues.jboss.org/browse/JBIDE-21857
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.1.Beta2
> Reporter: Fred Bricon
> Assignee: Andre Dietisheim
> Fix For: 4.4.3.AM2
>
> Attachments: HCRFailure.zip, code-out-of-sync.png, hot-code-replace-failed.png, jmx-connected-adapter-synchronized.png
>
>
> When enabling debug mode on an EAP server deployed on OpenShift, locally changing a class file will :
> - work sometimes when only the content of the method changed, but could fail in some other occasions with the Debugger saying the JDK is out of sync
> - will always fail if a method signature changed, the debugger saying JDK is out of sync
> Restarting the deployed module (with the .dodeploy flag) doesn't fixes the issue (as opposed to the same tweak ahen running on a local EAP server)
> This may be caused by running OpenJDK? Does it support the same level of debugging as Oracle JDK?
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jbosstools-issues
mailing list