Hello Aashutosh!
Welcome to Akka :-)

You can delete faulty messages by their sequence number. In PersistentActor
that would look like this (during replay):

deleteMessage(getCurrentPersistentMessage.sequenceNr, permanent =
false) // if "current" is wrong

(Permanent = false, allows you to "mark as deleted")


*Related note:*
Please remember that akka-persistence is undergoing a heavy refactor right
now.
To be relatively safe when migrating to newer versions keep using
EventsourcedProcessor (which will become PersistentActor), and don’t use
Channels or Processor.
​


On Mon, Jun 23, 2014 at 4:26 PM, Aashutosh Tiwari <[email protected]>
wrote:

> I am very new to scala and akka so forgive if this question is very lame.
>
> I have build a reactive application and it creates events and stores
> perfectly in cassandra which I am using as journal.
>
> There can be a scenario that my application might have some bug and I
> would have stored a wrong event in the journal.How would I deal with it? If
> I will release a new fixed version of application events after that will be
> right but I still be having a wrong event in my journal and during a
> restore it will play them wrong.
>
> --
> >>>>>>>>>> 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.
>



-- 
Cheers,
Konrad 'ktoso' Malawski
hAkker - Typesafe, Inc

<http://scaladays.org>

-- 
>>>>>>>>>>      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