Re: [Zope-dev] Re: [Bug] ZODB invalidation processing
On 5/31/07, Joachim Schmitz <[EMAIL PROTECTED]> wrote: Hi, I was able to locate the places in the Zope-sources where the conflict error is triggered. On my local system it's in ZODB.FileStorage in the store-method there is if serial != cached_tid: rdata = self.tryToResolveConflict(oid, cached_tid,serial, data) in the tryToResolveConflict method of ZODB.ConnflictResolution there is: committed = state(self, oid, committedSerial, prfactory, committedData) print "resolve", resolve resolved = resolve(old, committed, newstate) I'm not really sure, but have a look here: http://mail.zope.org/pipermail/zope-dev/2006-June/027573.html http://mail.zope.org/pipermail/zope-dev/2006-June/027583.html Maybe that helps. -- Markus ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] hanging zeo clients
Hi! We have one ZEO server that handles 3 FileStorages and 8 ZEO clients connecting to the ZEO server. Sometimes a client hangs and does no longer handle incoming connections. The ZEO server log shows in such a case, that the (hanging) client initiates a new connection 2006-11-12T10:30:39 INFO ZEO.StorageServer (3958) new connection ('10.x.x.x', 32803): If I'm correct, the next that should happen is a log entry from the ZEO server that he received a handshake from the client. Something like 2006-11-12T11:12:46 INFO ZEO.zrpc.Connection(S) (10.x.x.x:36805) received handshake 'Z303' This never happens. I have to restart the client. Has anyone an explanation for the hanging clients? (We're using Zope-2.8.8, Python-2.4.2) Markus ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zeo server conflict resolving
On 6/3/06, Dieter Maurer <[EMAIL PROTECTED]> wrote: A ZEO weakness, I fixed in our local copy this way:"runzeo.py":try: from App import FindHomesexcept ImportError: pass # this is not Zope This works for me. Thanks! -- Markus ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zeo server conflict resolving
Hi Stefan!Forgot to mention that this was actually the first thing I tried. But it doesen't work, asthe INSTANCE_HOME dir does also not show up in sys.path (in find_globals). - Markus On 6/2/06, Stefan H. Holek <[EMAIL PROTECTED]> wrote: You have to copy or symlink your Products directory into the ZEOinstance. At least those Products it tries to load for conflictresolution.HTH,StefanOn 2. Jun 2006, at 10:21, M. Krainer wrote: > How can I teach the zeo server to lookup my Products dir to resolve> the> conflict?--Anything that happens, happens. --Douglas Adams ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] zeo server conflict resolving
Can someone please enlighten me on conflict resolving of the zeo server?I'm getting occasional conflict errors from the zeo server.The class I'm getting those conflict errors is a simple class(only inheriting from Persistent) that defines a _p_resolveConflict() method. What I found out so far is, that in FileStorage.store() if serial!=cached_tid thentryToResolveConflict() gets called. In this method, in order to resolve theconflict, find_globals tries to import the module where my class is defined. Here's the problem. The zeo server has no information about my Products dir.I added it to the PYTHONPATH variable in zeoctl before starting the server.If I do a 'zeoctl show python' the Product dir shows up in the path, but when I log sys.path from within the find_globals() method it does NOT show up.How can I teach the zeo server to lookup my Products dir to resolve the conflict? - Markus ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: [Zope2] ZODB load optimization ineffective due to ExtensionClass flaw
> http://www.zope.org/Collectors/Zope/2042Is there a chance that this will make it into the Zope-2.8.7 release?-- Markus On 3/9/06, Dieter Maurer <[EMAIL PROTECTED]> wrote: Jim Fulton wrote at 2006-3-8 10:46 -0500:>Dieter Maurer wrote:>> The ZODB allows to include the class (a reference to it)>> into persistent references in order to avoid loading the object>> state when a ghost object needs >> to be created for the persistent reference.>>...>> Unfortunately, "ExtensionClass.Base" defines "__getnewargs__".>> It is the base class for all Zope2 classes. Zope2 persistent >> references are not optimized...>>...[Jim]>I'd have to review this, but I'm pretty sure that we dealt with this>issue, but I could be mistaken.After I have checked that the Zope[2] SVN trunk version, too, cannot use the optimization, I filed a feature request with solution:http://www.zope.org/Collectors/Zope/2042I adapted the "ExtensionClass" tests and verified that all tests in my Zope 2.8.1 installation continue to work despite my change.--Dieter___Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev** No cross posts or HTML encoding! **(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Please vote about conflict errors logging
1. Do you want these ConflictErrors retried logs to be at level:INFO 2. In addition, please specify if you feel those retriedConflictErrors should have their full traceback logged? no, without traceback 3. Finally, please tell us if the ConflictErrors that *can't* be retried (and are returned to the user as an error, and are alsologged to the error_log) should be additionally explicitely logged tothe event log, and at which level:ERROR ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )