[jboss-user] [JBoss Cache: Core Edition] - Re: TcpDelegatingCacheLoader

lovelyliatroim do-not-reply at jboss.com
Thu Jan 15 02:54:09 EST 2009


I just dont like the way the input and output streams are essentially left unprotected. The fact that you can use the old outputstream and with the call for read you can be using the new input stream, so what happens when that scenario occurs??

T1 acquires lock
T2 waits
T1 throws exception
T2 now has the lock
T2 writes but doesnt read
T1 creates new socket
T2 attempts to read but is now using the new sockets input stream......what happens to him now? He will probably timeout and cycle will restart.


On another note, it would be great as well if one could make a bulk get, so retrieving many Fqns in one call, I have the scenario where a client might want 20 data items from the server, 10 of those data items live on a remote cache. Clients timeout is 5 seconds, now remote server is down, i currently make 10 get calls remotely but if the remote server is down and i have a timeout of 1 second, the client will timeout before i even finish making the 10 calls. 

So if i made one bulk call for all 10 then i would timeout just once and still be able to provide 2nd best data to the client.

 
Cheers,
LL


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202034#4202034

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202034



More information about the jboss-user mailing list