[jboss-jira] [JBoss JIRA] Commented: (JBAS-7114) Undeploy-deploy loop of directly referenced applications due to hasStructureBeenModified

Ales Justin (JIRA) jira-events at lists.jboss.org
Tue Jul 21 13:46:29 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBAS-7114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12477050#action_12477050 ] 

Ales Justin commented on JBAS-7114:
-----------------------------------

We need to identify deployments somehow, and path name (relative path from root to deployment) was a logical choice.
Perhaps a workaround would be to have filter on the value + have root at file://home/.

But I see I need to re-think this mechanism, as your use case is valid.
Similar use case would be two exactly same named deployments in two different profile folders.
e.g. home/app.jar and deploy/app.jar, where home/ and deploy/ are roots



> Undeploy-deploy loop of directly referenced applications due to hasStructureBeenModified
> ----------------------------------------------------------------------------------------
>
>                 Key: JBAS-7114
>                 URL: https://jira.jboss.org/jira/browse/JBAS-7114
>             Project: JBoss Application Server
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: VFS
>    Affects Versions: JBossAS-5.1.0.GA
>         Environment: 14:51:33,954 INFO  [ServerInfo] Java version: 1.6.0_14,Sun Microsystems Inc.
> 14:51:33,954 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> 14:51:33,954 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 14.0-b16,Sun Microsystems Inc.
> 14:51:33,954 INFO  [ServerInfo] OS-System: Linux 2.6.25.14-69.fc8,amd64
> 14:51:33,955 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.sh -Dcom.sun.management.jmxremote -Xms128m -Xmx1536m -XX:MaxPermSize=256m -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/opt/jboss/jboss-5.1.0.GA/lib/endorsed 
>            Reporter: Juergen none
>            Assignee: Ales Justin
>
> in conf/bootstrap/profile.xml, applicationURIs:
> <value>file://home/login-service.sar</value>
> <value>file://home/app-local.ear</value>
> login-service.sar gets undeployed-redeployed every 5000 ms (HDScanner interval)
> from debugging:
> org.jboss.system.server.profileservice.repository.HotDeploymentRepository.getModifiedDeployments(), calling hasStructureBeenModified()
> for file://home/login-service.sar stays true
> both files share same root.getPathName() == "" !
> org.jboss.deployers.vfs.spi.structure.modified.MetaDataStructureModificationChecker.hasRootBeenModified():
> 1) root := app-local.ear: (app-local.ear).getPathName() == "", cached value for "" is null, put lastModified of (app-local.ear).getLastModified()
> 2) root := login-service.sar: (login-service.sar).getPathName() == "", cache value for "" is (app-local.ear).getLastModified() (<= (login-service.sar).getLastModified()) -> redeploy login-service.sar + getCache().invalidateCache(root.getPathName()): set "" to null
> 3) back to 1) -> loop

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list