I've run into a problem with my project that I can't seem to figure out. I'm trying to get this test to pass: <a href="https://github.com/markberger/tahoe-lafs/blob/1382-immutable-peer-selection-2/src/allmydata/test/test_upload.py#L1911">https://github.com/markberger/tahoe-lafs/blob/1382-immutable-peer-selection-2/src/allmydata/test/test_upload.py#L1911</a>. <div>
<br></div><div>The peer selector is correctly suggesting that server 0 hold share 3. However, when I ask server 0 to hold the share (which happens here: <a href="https://github.com/markberger/tahoe-lafs/blob/1382-immutable-peer-selection-2/src/allmydata/immutable/upload.py#L514">https://github.com/markberger/tahoe-lafs/blob/1382-immutable-peer-selection-2/src/allmydata/immutable/upload.py#L514</a>), allocated is empty, instead of agreeing to hold share 3 (this occurs here: <a href="https://github.com/markberger/tahoe-lafs/blob/1382-immutable-peer-selection-2/src/allmydata/immutable/upload.py#L587">https://github.com/markberger/tahoe-lafs/blob/1382-immutable-peer-selection-2/src/allmydata/immutable/upload.py#L587</a>).</div>
<div><br></div><div>After a little digging around I noticed that when I query server 0 to store share 3, this else statement executes (<a href="https://github.com/markberger/tahoe-lafs/blob/master/src/allmydata/storage/server.py#L284">https://github.com/markberger/tahoe-lafs/blob/master/src/allmydata/storage/server.py#L284</a>), which according to the comments, means there is no room to store the share, which isn't right. Could this have something to do with the fact that the store storedir is removed and then created to delete the shares off of server 0 during the test? The ticket that generated this test is here: <a href="https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1118">https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1118</a></div>
<div><br></div><div>Any help would really be appreciated!</div><div><br></div><div>Mark Berger</div>