Hi Sinthuja, Thanks for the explanation! Pointing to the code is really helpful!
On Sun, Dec 1, 2013 at 8:39 PM, Sinthuja Ragendran <[email protected]>wrote: > > Hi isuru, > > In Data Receiver (BAM receiver) all sessions are cached [1], and it's > stored in ConcurrentHashMap which is created byMapmaker [2]. Once the data > publisher is establishing the connection to the data receiver, the session > will be stored in the cache and it'll be automatically expired after the > configured time at clientTimeoutMS in > <BAM_HOME>/repository/conf/data-bridge/data-bridge-config.xml. > > Hence as per now regardless whether you are sending the events to data > receiver or not, it'll be automatically removed from the cache. Also in > such case data publisher will connect again to data receiver and send the > events, therefore there won't be any data loss due to session time out. > > [1] > https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/components/data-bridge/org.wso2.carbon.databridge.core/4.1.0/src/main/java/org/wso2/carbon/databridge/core/internal/authentication/session/SessionCache.java > [2] > http://google-collections.googlecode.com/svn/trunk/javadoc/com/google/common/collect/MapMaker.html > > Thanks, > Sinthuja. > > > On Fri, Nov 29, 2013 at 3:34 PM, Isuru Perera <[email protected]> wrote: > >> Hi, >> >> I'm running a load test on a setup configured with BAM 2.3.0. >> >> I see following log each 30 mins. >> >> TID: [0] [AS] [2013-11-29 15:02:28,356] INFO >> {org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher} >> - Session timed out for TCP,10.237.119.40:7621,TCP,10.237.119.40:7721,Thrift >> Session Expired Exception >> {org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher} >> >> It seems the session is set to 30 mins in >> <BAM_HOME>/repository/conf/data-bridge/data-bridge-config.xml >> >> <clientTimeoutMS>30000</clientTimeoutMS> >> >> How does Thrift session work? >> >> I didn't expect the session to timeout since there are requests >> continuously. >> >> There are few more questions on this in JIRA [1], but there are no >> answers. Anyway, I understand first two comments. >> >> Please note that I'm still learning BAM and all related technologies. :) >> >> Thanks! >> >> Best Regards, >> >> [1] >> https://wso2.org/jira/browse/BAM-685?focusedCommentId=65623&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-65623 >> >> -- >> Isuru Perera >> Senior Software Engineer | WSO2, Inc. | http://wso2.com/ >> Lean . Enterprise . Middleware >> >> about.me/chrishantha >> > > > > -- > *Sinthuja Rajendran* > > Software Engineer <http://wso2.com/> > WSO2, Inc.:http://wso2.com > > Blog: http://sinthu-rajan.blogspot.com/ > Mobile: +94774273955 > > > -- Isuru Perera Senior Software Engineer | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware about.me/chrishantha
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
