[ 
https://issues.apache.org/jira/browse/BROOKLYN-559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16248102#comment-16248102
 ] 

Aled Sage commented on BROOKLYN-559:
------------------------------------

There are two reasons for this:
1. The fundamental reason (IMO) is that it should copy the state as-is (i.e. 
raw copy, rather than any deserializing/reserializing). It seems that 
'checkpoint' to the backup dir does some processing that can go wrong.
2. The specific warning comes about because the original bundle from persisted 
state no longer exists. Instead, the initial catalog has already installed the 
equivalent bundle. When we come across the persisted state bundle, we see it is 
identical and skip it. However, this means that the id of the 
{{BasicManagedBundle}} representing that bundle has changed. When the 
'checkpoint' tries to find the managed bundle with that id, it can't so it 
skips persistence of the jar file!

> Rebind does not backup persisted state bundles directory correctly
> ------------------------------------------------------------------
>
>                 Key: BROOKLYN-559
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-559
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Aled Sage
>
> To reproduce with 1.0.0-SNAPSHOT, simply start a fresh brooklyn (persisting 
> to a new empty persisted state), then stop it and start it again.
> What should happen on restart (for file-based persistance rather than S3, at 
> least) is that it backs up the persistence directory before modifying it at 
> all:
> {noformat}
> 2017-11-10T18:51:11,521 INFO  124 o.a.b.c.m.p.BrooklynPersistenceUtils 
> [FelixStartLevel] Back-up of persisted state created on promotion, in 
> /path/to/br-1.0.0-snapshot/backups/2017-11-10-1851-zMFHJcxP-promotion-RYYo
> {noformat}
> However, it does not back up the bundles from the {{/bundles}} persistence 
> directory. Instead it reports:
> {noformat}
> 2017-11-10T15:47:22,704 WARN  123 
> o.a.b.c.m.p.BrooklynMementoPersisterToObjectStore [tures-1-thread-1] Cannot 
> find managed bundle for added bundle bjeyv3b96y; ignoring
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to