- 17 Sep, 2002 6 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
(now redundant) pid=%s part from that first log message.
-
Jeremy Hylton authored
Change label to ZSS:pid. Re-initialize pid every time a StorageServer is created. XXX This is sufficient as long as a single process doesn't create more than one StorageServer instance. I haven't found any code that does. Use log() function for self.log() method of ZEOStorage, so it ends up sharing the ZSS:pid prefix.
-
Jeremy Hylton authored
Caught by Guido, but why not be my compiler?
-
Jeremy Hylton authored
It was calling repr() twice on the elements of a tuple. Fix by calling repr() explicitly on each branch of the type-test code. Add comment about how short_repr() is used.
-
Jeremy Hylton authored
-
- 16 Sep, 2002 8 commits
-
-
Jeremy Hylton authored
Reformat all the code to use Python style. We got an undiagnosed bug report for coptimization, which lead to an attempt at code review. Break up a the large new_persistent_id() function into several helpers -- get_class(), get_class_tuple(), and set_oid(). Each function now does a little less. Don't reuse variable names for random purposes.
-
Guido van Rossum authored
parallel outstanding calls. However it also contains code (by Jeremy, with one notifyAll() call added by me) that enforces the old rule of a single outstanding call. This is hopefully unnecessessary, but we haven't reviewed the server side yet to make sure that that's really the case (the server was until now getting serialized calls per connection).
-
Guido van Rossum authored
checkCommitLock2On{Abort,Commit}. When ZEOStorage.notifyDisconnected() calls self.tpc_abort(), it is possible that self.strategy is DelayedCommitStrategy. In that case, ZEOStorage.tpc_abort() should *not* call self._handle_waiting(), otherwise there could be two ZEOStorage instances whose strategy is ImmediateCommitStrategy!
-
Guido van Rossum authored
true. Use 0 for false instead.
-
Guido van Rossum authored
true. Use 0 for false instead.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
try: self.lock.acquire() ... finally: self.lock.release() into: self.lock.acquire() try: ... finally: self.lock.release() The old version would mistakenly try to release the lock if there was error in acquiring it.
-
- 15 Sep, 2002 1 commit
-
-
Guido van Rossum authored
This code used to assume that all arguments were strings. It was always wrong (create was passed as '0' or '1' rather than as 0 or 1) but this was somehow masked. When I added readonly, things broke. The solution is that winserver.py ha a convention that an argument starting with '=' is evaluated as an expression, and _startserver in testZEO's WindowsConnectionText uses this for the create and readonly args.
-
- 14 Sep, 2002 1 commit
-
-
Guido van Rossum authored
wide xterm or emacs window. So now, when using Python 2.3 or later, the textwrap module is used to wrap the message line, indenting subsequent lines past the timestamp. Details and tracebacks are left alone.
-
- 13 Sep, 2002 16 commits
-
-
Guido van Rossum authored
Add a LOG call to ConnectionTests.setUp(). Add tests for the ClientStorage read_only and read_only_fallback features. Note that the latter feature is not completely working yet; the reconnect feature doesn't work, so it's of questionable value for now (though it *does* connect to a read-only storage whe no read-write storage is available).
-
Guido van Rossum authored
read_only_fallback option of ClientStorage. Unfortunately, this still doesn't work completely; as shown by some disabled tests that I'll check in shortly, the reconnect feature is still broken. But it's weekend time, and I need a checkpoint to keep my own sanity.
-
Guido van Rossum authored
"ClientStorage <pid>", use "ClientStorage:<pid>". Also log a message when a ClientStorage instance is created, showing the pid, the read_only and read_only_fallback parameters, and the storage name. Also log some more things: the retry of the register() call with read_only=1, the notifyConnected call, Also clean up a few comments and docstrings, removing one XXX that seems out of date. Also change the _tpc_cond.wait() method call into a wait(30). That way it is interruptable.
-
Guido van Rossum authored
StorageServer class, instead of "ZEO Server:<pid>", use "StorageServer:<pid>". In the ZEOServer class, instead of "ZEO Server:<pid>:<name>", use "ZEOStorage:<pid>:<name>". Also log a message when a StorageServer instance is created, showing the pid, the read_only parameter, the storage names, and for each storage whether it is RO (read-only) or RW (read-write). Also clean up a few comments, removing one XXX that seems out of date, and use %r instead of %s in some log messages.
-
Guido van Rossum authored
name, cache size, and current filename (could be None).
-
Guido van Rossum authored
"ZEO Server", use "ZEO/start.py". There was one (PANIC) log message that used "z2"; changed that one to "ZEO/start.py" as well.
-
Guido van Rossum authored
-
Guido van Rossum authored
repr module.
-
Guido van Rossum authored
service asyncore events intended for a ClientStorage created in the parent. That can't be intended. The best way I can see to avoid this is simply to clear asyncore's socket_map after the fork.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Casey Duncan authored
-
Jeremy Hylton authored
-
Guido van Rossum authored
never imported log or zLOG.
-
Guido van Rossum authored
-
Guido van Rossum authored
changed and the hotshot invocation wasn't changed along. Untested.
-
- 12 Sep, 2002 8 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Add a send_call() method that computes a new msgid and hands the message off to the smac layer. Uses __msgid_lock() call() still uses __call_lock, but callAsync() does not. callAsync() does not use any lock beyond what send_call() does.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Guido van Rossum authored
each time round the loop (with a 30 sec. timeout).
-
Guido van Rossum authored
should fix the problem that messages from different processes or threads could be intermingled. The code was rewritten to build up the lines of the error message in a list which is joined by "\n" characters at the end.
-
Guido van Rossum authored
values that connect_ex() may return when we're connected). This seems to resolve the last hangs observed on Win2K. There are still (unrelated) hangs on Win98 though.
-