- 10 Mar, 2003 1 commit
-
-
Jeremy Hylton authored
-
- 07 Mar, 2003 6 commits
-
-
Jeremy Hylton authored
It's not clear what the right answer is here. The implementation aborts any remaining resource managers and hopes for the best, which isn't very satisfying. Perhaps the hosed feature should come back. Add some comments about the issues involved. Revise the tests to cover the current behavior.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
XXX Should the manager duplicate these checks?
-
Jeremy Hylton authored
Make txn_factory an attribute of the base class. Raise an exception when prepare() returns False, rather than automatically aborting. Pass transaction object to Rollback() so that rollback() method can check state of transaction. Add IllegalStateError calls to prevent assertions from failing. XXX Should the manager duplicate these checks? Add suspend() and resume() to non-threaded txn manager. Fix bug that caused threaded suspend() to fail with KeyError for thread with no current transaction.
-
Jeremy Hylton authored
classes.
-
Jeremy Hylton authored
If an error occurs during tpc_finish, save the original exception just in case something goes wrong while cleaning up the message.
-
- 05 Mar, 2003 1 commit
-
-
Jeremy Hylton authored
Add suspend() and resume() to transaction manager API. Change implementation so that the thread-aware manager does not inherit from the thread-agnostic manager. Add suspended transaction state.
-
- 04 Mar, 2003 5 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Increase by iterating for longer, rather than making the delay longer. This helps the tests go fast on faster machines.
-
Jeremy Hylton authored
It's too much work to try to get these tests to work, considering that we are declaring start.py obsolete with the 3.2 release.
-
Jeremy Hylton authored
Print repr of description instead of str.
-
- 03 Mar, 2003 1 commit
-
-
Guido van Rossum authored
Pederson. The 'wrap' local variable was reused in a way that overwrote the value intended to set the return dictionary.
-
- 28 Feb, 2003 4 commits
-
-
Barry Warsaw authored
-
Tim Peters authored
which is used by Barry's new LockFile class. The effect of leaving regions of a file locked when closing the file, or when exiting the process, is undefined on Windows, and the new scheme restricts itself to operations with defined semantics.
-
Barry Warsaw authored
encapsulation the storage lock file.
-
Barry Warsaw authored
unlock_file() call which awaits Tim's backport of winlock.UnlockFile(). This is no-op on *nix. Also, implement a better API for dealing with lock files. Use the LockFile class for clean acquisition and release of locks, and unlinking of lock files.
-
- 25 Feb, 2003 1 commit
-
-
Fred Drake authored
- add missing period
-
- 20 Feb, 2003 5 commits
-
-
Fred Drake authored
-
Fred Drake authored
- normalize some markup usage
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
- fix lots of typos
-
- 18 Feb, 2003 1 commit
-
-
Jeremy Hylton authored
types that grow an __module__ in future versions of Python.
-
- 11 Feb, 2003 3 commits
-
-
Barry Warsaw authored
-
Fred Drake authored
- minor cleanup
-
Fred Drake authored
-
- 10 Feb, 2003 4 commits
-
-
Fred Drake authored
reconsidered. That's for another day, though.
-
Fred Drake authored
- use constant from errno module instead of magic number
-
Fred Drake authored
-
Fred Drake authored
Needed since we're not actually waiting for the ZEO server process to exit (it's a grandchild, not a child). It we don't wait, there's a race condition between one test and the next -- if the ZEO server isn't done shutting down, the database may still be locked when the next test starts.
-
- 07 Feb, 2003 1 commit
-
-
Barry Warsaw authored
it just uses the gzip module's default compression level (i.e. 9). No need to specify -z on recovery because the script will automatically uncompress gzip'd files. It does this by looking at the file extension, which will be .fsz or .deltafsz for compressed files.
-
- 06 Feb, 2003 3 commits
-
-
Barry Warsaw authored
incremental instead of all the incrementals. Less assured consistency but much less disk i/o.
-
Shane Hathaway authored
-
Shane Hathaway authored
-
- 05 Feb, 2003 4 commits
-
-
Barry Warsaw authored
saving state in a pck pickle file, and doing an incremental parse the next time. Specifically: Added -f and -r flags. The -f flag points to the pickle state file (by default ./zeoqueue.pck). The -r flag simply removes this file. This is useful for log rotation in the cron job, and yes rm would have been fine, but this option was requested by customers. process_file(): Added to Status class so that the processing is done here, where we can seek to a stored file position. Also added the secret -0 option for testing, which suppresses the file position seek (useful when the log file is split into chunks). Return the number of blocked clients as the exit status code.
-
Shane Hathaway authored
Also, avoid storing wrappers.
-
Shane Hathaway authored
-
Barry Warsaw authored
Added a module docstring as a usage() string. Also add --help/-h. Rewrote two of the regexps as verbose re's for readability <wink>. Use named groups. Use True/False where appropriate. Txn: Added a `voters' attribute which is a list of clients seen doing a vote. This is cleared on abort or finish. Thus if we see a transaction with a non-empty voters list, we know that that transaction was blocked and it was the first voter that grabbed the lock. This client (as an address) is displayed in the report. call_*(): Pass the client address into the call, as grep'd out of the zrpc-conn part of the line. Only call_tpc_vote() really cares about this. Most controversial: process the entire file, line by line. Alternatives, if necessary: - go back to the original progressive skip backwards approach - add an incremental reader (recording file positions) - use as a filter
-