On Mon, Feb 16, 2015 at 11:50 AM, Endre Varga <[email protected]>
wrote:
> Hi,
>
> The problem is really simple. You request sub.request(msgs.length) from
> the Window element, and then you send elements to it:
>
> for (msg <- msgs) {
> pub.sendNext(msg)
> }
>
> The problem here is your underlying assumption is that if you request X
> elements from a Processor (which is what the Windowed element will turn
> into) then it will *also* request X elements from its upstream. This is
> simply not true. You should wait for requests from yout processor probe
> side and only send messages that were actually requested.
>
You can take a look at this:
https://github.com/akka/akka/blob/release-2.3-dev/akka-stream-testkit/src/test/scala/akka/stream/testkit/StreamTestKit.scala#L49
-Endre
>
> -Endre
>
> On Mon, Feb 16, 2015 at 11:22 AM, Alexey Romanchuk <
> [email protected]> wrote:
>
>> Carl,
>>
>> I mean that problem is not in your code, neither in akka-stream code, but
>> in incorrect publisher behavior. Publisher should not send messages to
>> downstream more that downstream requested. If you are interested in manual
>> publisher you should call expectRequest and then send not more that
>> received messages.
>>
>> понедельник, 16 февраля 2015 г., 16:13:53 UTC+6 пользователь Carl Pulley
>> написал:
>>
>>> If I modify the materializer as follows:
>>>
>>> val settings =
>>> ActorFlowMaterializerSettings(system).withInputBuffer(initialSize = 1,
>>> maxSize = 2048)
>>>
>>> implicit val materializer = ActorFlowMaterializer(settings)
>>>
>>>
>>> then the observed issues remain. So I'm not immediately convinced the
>>> issue is due to the internal message flow buffers overflowing?
>>>
>> --
>> >>>>>>>>>> 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.
>>
>
>
--
>>>>>>>>>> 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.