[jbosstools-issues] [JBoss JIRA] (JBIDE-21857) Hot code replacement doesn't work on OpenShift

Andre Dietisheim (JIRA) issues at jboss.org
Wed Jan 25 09:54:00 EST 2017


    [ https://issues.jboss.org/browse/JBIDE-21857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13353441#comment-13353441 ] 

Andre Dietisheim commented on JBIDE-21857:
------------------------------------------

{quote}
[3:46 PM] Rob Stryker: with a local wf / eap, we had the same bug
[3:47 PM] Rob Stryker: the problem was,  the eclipse debugger would actulaly somehow hold a reference to the class being changed
[3:47 PM] Rob Stryker: when you do a full publish, the server is actually getting rid of all the old classes, and making active new versions of the same
[3:47 PM] Rob Stryker: however, the server never cleanly gets rid of the old one, bc there's a breakpoint on it
[3:48 PM] Rob Stryker: so the debugger's reference to it prevents it from being cleaned up
[3:48 PM] Rob Stryker: so how do we handle it for local?
[3:49 PM] Rob Stryker: as i recall,  we 1) disabel the breakpoints,  2) issue garbage collection command on server 2x,  and 3) re-enable the breakpoints
...
[3:50 PM] Rob Stryker: for the local eap we have in code:
[3:50 PM] Rob Stryker: ClassCollectingHCRListener
[3:50 PM] Rob Stryker: for the openshift eap:
[3:50 PM] Rob Stryker: OpenShiftLaunchController   instantiates an anonymous subclass of ClassCollectingHCRListener
[3:50 PM] Rob Stryker: line 391
{quote}


> 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