You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Aled Sage (JIRA)" <ji...@apache.org> on 2018/03/09 11:27:00 UTC
[jira] [Commented] (BROOKLYN-585) Bundle not re-installed on change
when using brooklyn.library's URL
[ https://issues.apache.org/jira/browse/BROOKLYN-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16392737#comment-16392737 ]
Aled Sage commented on BROOKLYN-585:
------------------------------------
This is because of \{{org.apache.brooklyn.core.mgmt.ha.OsgiArchiveInstaller.makeLocalZipFileFromInputStreamOrUrl:249}}. We compare the URL against the already-installed bundle. Because it matches, we don't bother downloading the bundle again. We therefore don't compare the checksum to see that the bundle has changed.
> Bundle not re-installed on change when using brooklyn.library's URL
> -------------------------------------------------------------------
>
> Key: BROOKLYN-585
> URL: https://issues.apache.org/jira/browse/BROOKLYN-585
> Project: Brooklyn
> Issue Type: Bug
> Affects Versions: 0.12.0
> Reporter: Aled Sage
> Priority: Major
>
> A user built a big zip and uploaded it via `br catalog add ...`. Inside this zip was another bundle. Inside the zip's catalog.bom it referenced the nested bundle with something like:
> {noformat}
> brooklyn.libraries:
> - classpath://example.com:my-bundle-0.1.0-SNAPSHOT.jar
> {noformat}
> The user modified and rebuilt the zip (including changes made to \{{my-bundle}}), and ran `br catalog add ...` again.
> However, the bundle \{{my-bundle-0.1.0-SNAPSHOT.jar}} was not updated.
> The log showed:
> {noformat}
> 2018-03-08T14:45:41,055 DEBUG 127 o.a.b.c.c.i.CatalogUtils [qtp960400918-234] Loading bundles in LocalManagementContext[CXm7RHiX-H18T4PLb]: CatalogBundleDto\{symbolicName=null, version=null, url=classpath://example.com:my-bundle-0.1.0-SNAPSHOT.jar}
> 2018-03-08T14:45:41,056 DEBUG 127 o.a.b.c.c.i.CatalogUtils [qtp960400918-234] Installation of library CatalogBundleDto\{symbolicName=null, version=null, url=classpath://example.com:my-bundle-0.1.0-SNAPSHOT.jar}: OsgiBundleInstallationResult[IGNORING_BUNDLE_AREADY_INSTALLED, BasicManagedBundle\{symbolicName=com.example.my-bundle, version=0.1.0.SNAPSHOT, url=classpath://example.com:my-bundle-0.1.0-SNAPSHOT.jar}, Bundle example.com.my-bundle:0.1.0.SNAPSHOT already installed as wr5u3ubbae]
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)