Re: strange exception
Sanjay Rao <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <[email protected]> |
Are you recommending to open a new ZODB connection for each thread ? On Friday, 23 December 2016 20:42:20 UTC+5:30, Jim Fulton wrote: > > > > On Fri, Dec 23, 2016 at 12:42 AM, Sanjay Rao <[email protected] > <javascript:>> wrote: > >> My zope application is a multi-node application. Each node has two >> databases. >> - One local file based database for some local storage. This does not >> create any exception. >> - One centralised database running on ZEO. (For this I maintain one >> global database connection across all threads). This connection is >> protected by a global lock. >> > > OK, that is likely part of the failure, although it's hard to say. Don't > do this, it's too hard to do this correctly. > > > >> >> Same thread can make changes in both databases, but in separate >> transactions. Application does not cause any consistency issues because >> both databases have independent information from each other. >> >> When I keep number of threads about 15 then exception was not observed, >> but if i increase number of threads to 30 then it was observed >> consistently. Once this exception occurs then it keep happening until not >> restarted. >> >> Do you need some more information to understand ? >> > > No. I have enough. Don't do what you're doing. The fact that the problem > happens as you add more threads should be a strong indicator that your > approach is flawed. > > Jim > > -- > Jim Fulton > http://jimfulton.info > -- You received this message because you are subscribed to the Google Groups "zodb" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.