Hi Peter,

29 aug 2014 kl. 17:50 skrev Peter <[email protected]>:

> Hi
> 
> Just wondering what the reasons would be for keeping any snapshots older than 
> the most current one around? I guess one reason would be if one wanted to 
> restore from a certain point in time in the past with maximum performance. 
> Personally I don't need this, so only interested in keeping the latest 
> snapshot, would this be a reasonable way to do it:
> 
> 
>     case SaveSnapshotSuccess(metadata) =>
>       log.debug("successfully saved snapshot {}, deleting prior 
> snapshots...", metadata)
>       deleteSnapshots(SnapshotSelectionCriteria.create(metadata.sequenceNr, 
> metadata.timestamp - 1))

That looks reasonable to me. Snapshots are slightly dangerous to keep around 
since potential errors are persisted such that a later correction of the code 
does not automatically reprocess everything with the fixed code; this may or 
may not be what you want, leading to the decision to either delete or persist 
the last snapshot before the bugfix.

> 
> As an aside, in ShardCoordinator (2.3.5), I've noticed the snapshotTask isn't 
> getting cancelled in postStop(), is there a reason for that or was it an 
> accidental omission?

Thanks for noticing, would you mind creating a ticket? (so you get the credit 
for finding it)

Regards,

Roland

> 
> Thanks!
> Peter
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe – Reactive apps on the JVM.
twitter: @rolandkuhn


-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to