"timfox" wrote :
| Since isPaging() and addSize() are not done together as an atomic operation, it is possible that many threads could call isPaging() at the same time and return false to all of them.
The way it works is...
We aways call page(Message) before routing...
if (!page(Message))
{
route();
addSize(....);
}
addSize is what starts the page-mode, and addSize is only called after routing. Meaning that anything after that will be routed.
You could eventually have simultaneous threads overlapping the maxSize... but I'm not sure if the cost of synchronizing this would be worth.
We could maybe add another check on the last addSize. But i don't want to add any synchronization on this.
I can double check this after Xmas.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197901#4197901
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197901
| Kevin, I believe that you are very wary of signal because the command doesn't know if the process instance is in a known/consistent state
|
You can set an "expected state" on the jbpm SignalCommand. And I think if you get some really external signal, you need he SignalCommand, or how do you want to get around this?
Returning the token id when starting a new process instance is indeed an important use case where already some workarounds have been created because it is not there! So I completly support this requirement.
In this thread I think it is a good idea to mention again, that the whole internals of the BpmProcessor are a bit, hmm, let's say hard to understand... Best thing in my eyes is to rewrite it... I wanted to collect issues I have with it but didn't had the time yet...
Cheers
Bernd
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197896#4197896
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197896
"timfox" wrote : "timfox" wrote : 12) If paging address is used in directory name we need to ensure it works if the paging address contains characters like "/", "\" or other characters (non ascii etc).
|
| Is this done yet? (Doesn't look like it).
|
| If not, please make sure it is tracked in a JIRA.
|
| Actually, can you look through all the paging and large message threads and make sure everything that is not complete yet is tracked properly. It seems we have some loose ends here.....
|
I had done that and I'm only missing failover now. but i will go over again later.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197890#4197890
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197890