H-A-227: answer an object store's fill from its stream's own figures
The fill was a listing of every description in the store, deleted chunks' leftovers included; a receiver reading it per chunk made one connection read about 14 MB/s. The fill is now one stream info request: its bytes, its cap, and its live subjects as the count. Builds: design 47 H H-A-227
This commit is contained in:
@@ -95,6 +95,11 @@ func TestABundleReachesItsOwnBoundObjectsAndStreamsOnly(t *testing.T) {
|
||||
if listed, err := conn.ObjectsList("m", buscalls.ObjectsRequest{Objects: "files"}); err != nil || len(listed.Objects) != 1 {
|
||||
t.Fatalf("listed %+v, %v", listed, err)
|
||||
}
|
||||
// H-A-227: the fill is the stream's own figures, its live subjects as the count (a's chunk and description, big's
|
||||
// description left by its delete), never the count of its listed objects.
|
||||
if fill, err := conn.ObjectsInfo("m", buscalls.ObjectsRequest{Objects: "files"}); err != nil || fill.Count != 3 || fill.Bytes == 0 {
|
||||
t.Fatalf("objects fill %+v, %v", fill, err)
|
||||
}
|
||||
// A-380: an old `objects` entry is reached by the store grants creates for it, `<module>_<name>`, with no binding of that name.
|
||||
if _, err := conn.ObjectsPut("m", buscalls.ObjectsPutRequest{Objects: "old", Name: "r", Data: []byte("old section")}); err != nil {
|
||||
t.Fatalf("put into the old objects section: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user