[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3924: Test for allmydata.immutable.layout.WriteBucketProxy invariant

Tahoe-LAFS trac at tahoe-lafs.org
Thu Sep 8 18:46:59 UTC 2022


#3924: Test for allmydata.immutable.layout.WriteBucketProxy invariant
-------------------------+---------------------------
 Reporter:  itamarst     |          Owner:
     Type:  enhancement  |         Status:  new
 Priority:  normal       |      Milestone:  undecided
Component:  unknown      |        Version:  n/a
 Keywords:               |  Launchpad Bug:
-------------------------+---------------------------
 #3915 adds an invariant that calculated length must match the written
 data; this is sensible (and required by HTTP!) but wasn't previously
 enforced, relying on Foolscap write's semantics that allowed creating
 holes with nulls.

 It would be nice to be able to test this (and other invariants) but as is
 the code is factored in ways that make it very difficult to test without
 creating a whole pile of different objects. This may be the influence of
 Foolscap pushing for more RPC-ish structure?

 Anyway writing this test is going to require some Refactoring... For now
 this is just enforced at runtime.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3924>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list