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

Rob Stryker (JIRA) issues at jboss.org
Tue Apr 12 14:48:00 EDT 2016


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

Rob Stryker commented on JBIDE-21857:
-------------------------------------

After a lot of testing, there's only a few ways I can replicate this patch actually successfully working.  Tested on linux using java-1.8.0-openjdk-1.8.0.65-3.b17.fc21.x86_64,  I get the following results:

1) I can make internal method changes all day long and there's no error
2) If I change a signature, and redeploy the application, then:
   a)  No matter how many times I garbage collect, or how much time I wait, further changes will always continue to show the hcr-error dialog
   UNLESS,   b)  I refresh the page that actually uses the class, wait about 3-5 seconds, and then garbage collect 2x via JMX UI. 

 
So basically, even though I've republished the module, and even though the server should have theoretically gotten rid of all old references, it seems to me that somehow it's still holding on to the old class until someone actually comes in and refreshes the page. 

[~tmader], any ideas on this? Is this something you can verify? 

> Hot class reload 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: Rob Stryker
>            Priority: Blocker
>             Fix For: 4.4.0.Alpha1
>
>         Attachments: HCRFailure.zip
>
>
> 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
(v6.4.11#64026)


More information about the jbosstools-issues mailing list