Hi all,

I have certain difficulties with merging different branches of flow. 
My flow looks like following:

          
|-----------------------------------------------------------------------------|
          |  |---------------------------------------------------------|    
            |
          |  |-->>>>> |--------|                                       |    
            |
          |           |        |                                       |    
            |
          |------>>>> |        |                                       |    
            |
                      |        |                                       |    
            |
          |------->>> | merge1 |                                       |    
            |
          |           |        |                                       |    
            |
          |  |----->> |        |                      |------------| --|  
|---------| --|
          |  |        |        |                      |   doByI1   |      
|  doByI2 |
    ~~----+--+------> |--------| --> |----------| --> |------------| ---> 
|---------| ------------->>> |--------|
          |  |                       | splitter | 
-----------------------------------------------|     |        |
          |  |                       |----------| --> |------------| ----> 
|-------------| ------+-->> | merge2 | -->
          |  |                                        |   doByI3   |      
 |    doByI4   |       |     |        |
          |  |                                        |------------| --|  
 |-------------| --|   |---> |--------|
          |  |---------------------------------------------------------|    
                 |
          
|----------------------------------------------------------------------------------|


Both merge shapes have type MergePrioritized with eagerComplete = true. 
The problem is when I run flow with some input which is correct, I 
sometimes receive following error: 

[error] a.a.RepointableActorRef - Error in stage [MergePrioritized]: Cannot 
get element from already empty input port (MergePrioritized.in1(1037027355))
java.lang.IllegalArgumentException: Cannot get element from already empty 
input port (MergePrioritized.in1(1037027355))

If I change eagerComplete value for of merge shapes I still see an error + 
flow never ends. If I change it for both shapes, then error disappears, but 
flow never ends. 
I am wondering if it is design problem or I should look closer to the code 
itself? 

PS: If I replace MergePrioritized with MergePreferred, everything works 
correctly without any problems. 

Thank you in advance!

Regards,
Sergii




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