- 03 Oct, 2001 1 commit
-
-
Chris McDonough authored
Changed the conflict resolution machinery to avoid attempting to resolve conflicts on ZClasses, because we can't import their "modules" (we don't have a db connection).
-
- 02 Oct, 2001 5 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
actual work
-
Jim Fulton authored
database file not to be truncated when it should have been during a two-phase commit abort.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Simplify santiy checking of length fields in transaction metadata. Replace the following test: [1] if ul > tl or dl > tl or el > tl or tl < (23+ul+dl+el): with this one: [2] if tl < (23+ul+dl+el): If any of the first three comparisons in [1] is true, then the final test must also be true. It's unlikely that any of the tests will be true, so just do the final one.
-
- 28 Sep, 2001 6 commits
-
-
Jeremy Hylton authored
This test wasn't part of read_index(), but seems good and cheap. XXX Needs test case.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
- 26 Sep, 2001 1 commit
-
-
Jeremy Hylton authored
The only exceptions that an _p_resolveConflict() method should raise are ConflictError and ValueError. If it raises a different exception, then it has failed. In general, a unittest should not use a bare except clause, because they almost always mask failures. If the test really means to catch all exceptions, it's best to make a comment to that effect.
-
- 21 Sep, 2001 1 commit
-
-
Barry Warsaw authored
self.assertEqual() and friends since this gives much better output.
-
- 20 Sep, 2001 2 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Based on conversation with Evan yesterday, I think this is safe.
-
- 18 Sep, 2001 1 commit
-
-
Jeremy Hylton authored
-
- 13 Sep, 2001 1 commit
-
-
Jeremy Hylton authored
FCNTL is deprecated in Python 2.2 and all its functionality is available in fcntl in Python 2.1.
-
- 12 Sep, 2001 3 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Handle two new failure conditions by ignoring the index and continuing: - corrupted pickle in .index file - no value for 'pos' in pickle (used to call long(None))
-
matt@zope.com authored
bucket when doing a "low" search.
-
- 07 Sep, 2001 8 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Remove Python 2.x-isms so that tests run under Python 1.5.2
-
Jeremy Hylton authored
Use asyncwrap to call asyncore.loop() and asyncore.poll(). Add definition for EINTR.
-
Jeremy Hylton authored
Shorten two long lines, one by wrapping, another by removing an unnecessary tuple unpacking.
-
Jeremy Hylton authored
Wrap send() and recv() calls in try/except The try/except catches errors like EAGAIN that indicate transient failures. In those cases, treat as send() and recv() of no data and return from method gracefully.
-
Jeremy Hylton authored
Fixed a bug in building undo invalidation info that caused client storages to raise an exception that caused connections to be reset and that, for some of reason, caused undo's to not propigate to the clients. Avoid long delays at the end of a pack. When a client calls pack, a separate thread is started to call the pack call on the storage. When the thread finishes, it calls message_output() to send a response to the client. If asyncore is currently in a poll call when this happens, the output won't be detected until the next poll call. If there is little I/O on the connection, this won't happen until the select call times out after 30 seconds. The trigger is the standard gimmick for one thread to notify a mainloop in another thread that the first thread has some I/O to do. It exits the current select. The next poll call detects that the triggering thread is ready to do I/O and handles it. Use asyncwrap to call asyncore.loop() and asyncore.poll()
-
Jeremy Hylton authored
Don't release the commit lock unless there is a transaction in progress. This appears to cause the "release unlocked lock" error to be replaced with a socket.error: "bad file descriptor". That's progress?
-
Jeremy Hylton authored
Wrap asyncore calls and be careful about exceptions.
-
- 06 Sep, 2001 1 commit
-
-
Barry Warsaw authored
read-only protocol.
-
- 04 Sep, 2001 2 commits
-
-
Jeremy Hylton authored
Add one case where failure to remove is not a fatal error. And be more specific about the error that is caught -- OSError only.
-
Andreas Jung authored
implementation
-
- 01 Sep, 2001 1 commit
-
-
Andreas Jung authored
-
- 27 Aug, 2001 1 commit
-
-
Shane Hathaway authored
from the debugging information screen.
-
- 24 Aug, 2001 1 commit
-
-
Jeremy Hylton authored
-
- 23 Aug, 2001 2 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
- 17 Aug, 2001 1 commit
-
-
Jeremy Hylton authored
forker.py: Extend start_zeo_server() on Windows with arg that specifies port, which is used to restart the server on the same port. Remove unnecessary imports. Set PYTHONPATH for the spawned script. testZEO.py: Refactor ConnectionTests into abstract base class with two platform- specific subclasses. Add goofy test_suite() function, which is goofy because I can't figure out how to use unittest any other way. winserver.py: Keep track of storage in ZEOTestServer so that its close() method can be called when the server exits.
-
- 16 Aug, 2001 2 commits
-
-
Jeremy Hylton authored
winserver.py: A small script that runs a ZEO StorageServer and a ZEOTestServer. The ZEOTestServer is used to kill the StorageServer during a unit test's teardown phases. As soon as a client connects to that server, it exits the process. forker.py: Now forks and spawns, depending on os. XXX This needs to be cleaned up a lot, since the interfaces on Windows and Unix are nothing alike. testZEO.py: Add WindowsGenericTests and WindowsZEOFileStorageTests. These test cases use the Windows-specific forker interface. They also use getStorageInfo() to describe the storage, rather than getStorage() to create the storage. This is necessary because the storage instance is created in a separate process.
-
Jeremy Hylton authored
-