I think it makes sense to complete the stream when it's know that there
will be no events matching toSequenceNr.

There is an effort to write a TCK for Persistence Query
https://github.com/akka/akka/pull/20807
Unfortunately the PR has been inactive for a while now. It would be great
if community can help out there and complete it. The TCK would be a great
place to add tests for the toSequenceNr. Fixing the actual implementations
would also be needed, of course.

Thanks,
Patrik

On Sun, Aug 21, 2016 at 7:33 AM, Aditya Prasad <akpra...@gmail.com> wrote:

> Does anyone know the expected semantics of eventsByPersistenceId when
> toSequenceNr is less than or equal to the journal's latest version?
>
> In some impls & cases it completes the stream (which makes sense), and in
> others it does not (which is hard to work with).
>
>
> On Thursday, August 18, 2016 at 10:52:58 AM UTC-7, Aditya Prasad wrote:
>>
>> Can anyone else repro this? This future never completes:
>>
>>     val fut = readJournal.eventsByPersistenceId(tenantId.value, 0,
>>> 0).runWith(Sink.head)
>>>     val res = Await.result(fut, 10 seconds)
>>
>>
>>
>>
> --
> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to