[Zope3-Users] Urgent: What to do with ZODB.FileStorage.FileStorage.CorruptedTransactionError
Yes, I has known that I got the Error. But What to do with it? (And Why?) Appreciate! Iap === CRITICAL ZODB.FileStorage /home/workspace/zope3/var/Data.fs data record exceeds transaction record at 36977087 Traceback (most recent call last): File zope3/bin/runzope, line 49, in ? run() File zope3/bin/runzope, line 45, in run main([-C, CONFIG_FILE] + sys.argv[1:]) File /usr/local/Zope-3.4.0c1/lib/python/zope/app/twisted/main.py, line 74, in main service = setup(load_options(args)) File /usr/local/Zope-3.4.0c1/lib/python/zope/app/twisted/main.py, line 147, in setup db = zope.app.appsetup.appsetup.multi_database(options.databases)[0][0] File /usr/local/Zope-3.4.0c1/lib/python/zope/app/appsetup/appsetup.py, line 213, in multi_database db = factory.open() File /usr/local/Zope-3.4.0c1/lib/python/ZODB/config.py, line 97, in open storage = section.storage.open() File /usr/local/Zope-3.4.0c1/lib/python/ZODB/config.py, line 135, in open quota=self.config.quota) File /usr/local/Zope-3.4.0c1/lib/python/ZODB/FileStorage/FileStorage.py, line 164, in __init__ ltid=ltid, start=start, read_only=read_only, File /usr/local/Zope-3.4.0c1/lib/python/ZODB/FileStorage/FileStorage.py, line 1729, in read_index name, pos) File /usr/local/Zope-3.4.0c1/lib/python/ZODB/FileStorage/FileStorage.py, line 53, in panic raise CorruptedTransactionError(message) ZODB.FileStorage.FileStorage.CorruptedTransactionError: %s data record exceeds transaction record at %s ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] efficiency of PAU authentication
Hi, dear all, PAU authenticates 2 times each request, before and after traversal. What if I make an authentication plugin based on relational database? Everytime the plugin has to create a pricipal from database, assign roles to it, ... When the website is under heavy load, there must be huge number of authentication request. Is RDB based PAU efficient enough to do authentication? I have an idea of session-cache authentication: fetch credentials from RDB and cache them in session. Is this more efficient? Best Regards Nixon ___ 雅虎邮箱,您的终生邮箱! http://cn.mail.yahoo.com/___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
AW: [Zope3-Users] efficiency of PAU authentication
Hi Nixon Betreff: [Zope3-Users] efficiency of PAU authentication Hi, dear all, PAU authenticates 2 times each request, before and after traversal. Really? Can you explain why this happens? What if I make an authentication plugin based on relational database? Everytime the plugin has to create a pricipal from database, assign roles to it, ... When the website is under heavy load, there must be huge number of authentication request. Is RDB based PAU efficient enough to do authentication? I have an idea of session-cache authentication: fetch credentials from RDB and cache them in session. Is this more efficient? Yes, of corse, I recommend caching if you need to run a heavy loaded site. Regards Roger Ineichen Best Regards Nixon 雅虎邮箱,您的终生邮箱! http://cn.mail.yahoo.com/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: AW: [Zope3-Users] efficiency of PAU authentication
Hi, in app.publication.zopepublication.py there are 2 methods. Maybe they are invoked in different scenarios, I am not sure. But at least one PAU auth for each request. def callTraversalHooks(self, request, ob): # Call __before_publishing_traverse__ hooks notify(BeforeTraverseEvent(ob, request)) # This is also a handy place to try and authenticate. self._maybePlacefullyAuthenticate(request, ob) def afterTraversal(self, request, ob): #recordMetaData(object, request) self._maybePlacefullyAuthenticate(request, ob) - Original Message From: Roger Ineichen [EMAIL PROTECTED] To: nixon [EMAIL PROTECTED]; zope3-users@zope.org Sent: Wednesday, April 30, 2008 11:26:31 AM Subject: AW: [Zope3-Users] efficiency of PAU authentication Hi Nixon Betreff: [Zope3-Users] efficiency of PAU authentication Hi, dear all, PAU authenticates 2 times each request, before and after traversal. Really? Can you explain why this happens? What if I make an authentication plugin based on relational database? Everytime the plugin has to create a pricipal from database, assign roles to it, ... When the website is under heavy load, there must be huge number of authentication request. Is RDB based PAU efficient enough to do authentication? I have an idea of session-cache authentication: fetch credentials from RDB and cache them in session. Is this more efficient? Yes, of corse, I recommend caching if you need to run a heavy loaded site. Regards Roger Ineichen Best Regards Nixon 雅虎邮箱,您的终生邮箱! http://cn.mail.yahoo.com/ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users