Hi,

Here is my code:

        Source<Product, NotUsed> missedProductSource =
Source.from(missedProducts) ;
        final RunnableGraph<akka.NotUsed> missedTo =
missedProductSource.mapAsyncUnordered(5, p->{
            try {
                return stopProductDisplay(p.productNo, p.id);
            } catch (Throwable t ) {
                Logger.error(t.getMessage(), t);
                return CompletableFuture.completedFuture((Void)null);
            }
        }).to(Sink.ignore()) ;
        missedTo.run(materializer) ;
Where stopProductDisplay's return type is CompletionStage<Void>.

The size of missedProducts is more than 30,000. but the stream only
processed 5 elements, then stop working. No error logged out.

I cannot figure out the reason.

What is wrong with the above code, or how to debug the issue?

Thanks for your help.

Guofeng

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to