Hi Manas,
it should actually be deleted. I modified this example
<https://github.com/akka/akka/blob/v2.3.0/akka-samples/akka-sample-persistence-scala/src/main/scala/sample/persistence/ProcessorChannelExample.scala>
with your persistent channel config
val channel = context.actorOf(PersistentChannel.props(
PersistentChannelSettings(pendingConfirmationsMax = 1,
pendingConfirmationsMin = 0)), "channel")
and the message gets deleted successfully.
- What journal do you use?
- How do you check whether a message has been deleted from the journal
or not?
- Deletion is done asynchronously. Do you let your example application
enough time to actually perform the deletion?
On 11.03.14 07:19, Manas Kar wrote:
Hi,
I am very excited about the latest and the biggest feature of
Akka2.3.0 that is Persistence.
I have posted a question about Akka persistentChannel here.
<http://stackoverflow.com/questions/22315418/akka-persistentchannel-does-not-delete-message-from-journal-upon-confirm>
Basically I have a persistentChannel that sends some IOWork to a
destination actor. Destination actor tries to do the work and when
successfully completes the work or the deadline has no time left it
sends a "confirm" on the ConfirmablePersistent message.
My expectation after reading the documentation was that my message
will be deleted from the journal after I "confirm" the message but it
does not. Am I doing something wrong here? my requirement is simple
persist the message and delete it after the corresponding IO work is
done for the message.
Please help.
...Manas
--
>>>>>>>>>> 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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
--
Martin Krasser
blog: http://krasserm.blogspot.com
code: http://github.com/krasserm
twitter: http://twitter.com/mrt1nz
--
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.