TestAtomicFile.test_mode_02666 failure on NFS mounted filesystem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
John A Meinel |
Bug Description
booty% bzr pull
Using saved location: http://
All changes applied successfully.
5 revision(s) pulled.
booty% ./bzr selftest --no-plugins
bzr: /home/jaq/
bzrlib: /home/jaq/
running tests...
/home/jaq/
warn("You must install medusa (http://
bzrlib.
[======
=======
FAIL: test_mode_02666 (bzrlib.
vvvv[log from bzrlib.
^^^^[log from bzrlib.
-------
Traceback (most recent call last):
File "/home/
self.
File "/home/
self.
File "/home/
'mode mismatch %o != %o' % (mode, mode_test))
AssertionError: mode mismatch 2666 != 666
-------
Ran 3082 tests in 3844.654s
FAILED (failures=1)
tests failed
Exception in thread Thread-423 (most likely raised during interpreter shutdown):Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/home/
exceptions.
Exception in thread Thread-420 (most likely raised during interpreter shutdown):Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/home/
exceptions.
Exception in thread Thread-417 (most likely raised during interpreter shutdown):Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/home/
exceptions.
Exception in thread Thread-434 (most likely raised during interpreter shutdown):Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/home/
exceptions.
Exception in thread Thread-431 (most likely raised during interpreter shutdown):Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/home/
exceptions.
Exception in thread Thread-428 (most likely raised during interpreter shutdown):Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/home/
exceptions.
I'm impressed though, last time i pulled dev and ran selftest, there were several tens of failures that i couldn't replicate on a non-NFS filesystem
Well, all the 'exceptions. AttributeError' stuff looks like just cleanup issues of the sftp system.
It would seem that the 'socket' module is somehow destroyed before the thread is told to cleanup, so then it tries to grab an attribute, but the module is already None.
It seems that for some reason, your sftp server threads are not shutting down when they are asked.
As for the mode 2666 problem. What do you recommend? We are testing that we can set mode = 02666 when requested. On NFS it seems that we can't. That would seem to be a genuine failure. It is a Platform Deficiency, and not a bug in bzr specifically. I'm not sure how to detect the specific deficiency, though.
If you can think of a way to detect that the platform won't do what we want, I suppose we could just skip the test.
(One possibility would be to create a different file, and directly chmod it to 2666, if that fails, just skip the test).