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): ManagedServerConnection ('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 )
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 thisissue, 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 )
[Zope] cutpaste from one mounted storage to another
Hi! Is there a possibility to cutpaste from one mounted storage to another? I have a filestorage Data.fs mounted as / and another filestorage Archive.fs mounted at /site/Archive. When I try to cutpaste an object from e.g. /site/foo/bar to /site/Archive/bar I get an InvalidObjectReference Exception: File /opt/Zope-2.8.1/lib/python/ZODB/Connection.py, line 503, in _commit self._store_objects(ObjectWriter(obj), transaction) File /opt/Zope-2.8.1/lib/python/ZODB/Connection.py, line 525, in _store_objects p = writer.serialize(obj) # This calls __getstate__ of obj File /opt/Zope-2.8.1/lib/python/ZODB/serialize.py, line 330, in serialize return self._dump(meta, obj.__getstate__()) File /opt/Zope-2.8.1/lib/python/ZODB/serialize.py, line 339, in _dump self._p.dump(state) File /opt/Zope-2.8.1/lib/python/ZODB/serialize.py, line 281, in persistent_id raise InvalidObjectReference( InvalidObjectReference: Attempt to store an object from a foreign database connection Am I doing something wrong or is this simply not possibly resp. is there a workaround to do a cutpaste between storage boundaries? Thanks. -- mkrainer ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] large installations and conflict errors
Hi! We run a self developed zope product originally based on cmf but highly customized and extended. Our Data.fs now has grown to a (packed) size of 25GB and we are running more and more into performance troubles (mostly due to a lot of conflict errors). Our users make a lot of updates, i.e. we have lots of write operations. Currently we think that our bottle neck is the 'portal_catalog' and I'm working on splitting it up into multiple ZCatalogs. So far our story, but what I really wonder is, if there's anyone out there who has a similar large installation. Please let me know how large your zope instance is and what you have done to increase your (write) performance. Also any ideas that may help us are welcome. Additional info: 4 ZEO clients, 1 ZEO server (all machines have dual P4 and 3-4GB ram), Zope-2.8.0 Thanks, Markus ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )