panic: each shard must have capacity of at least len(data)/m panic: each shard must have capacity of at least len(data)/m goroutine 1 [running]: lukechampine.com/us/renter.simpleRedundancy.Encode(0x1, 0xc001e70000, 0x400037, 0x402000, 0xc0003d8220, 0x1, 0x1) /Users/junpei/pkg/mod/lukechampine.com/us@v0.15.0/renter/reedsolomon.go:112 +0x263 lukechampine.com/us/renter/renterutil.(*PseudoFS).fillSectors(0xc0001d2000, 0xc000136960, 0xc0004f6ae0, 0x32903ba2b1cf62f1) /Users/junpei/pkg/mod/lukechampine.com/us@v0.15.0/renter/renterutil/fileops.go:256 +0x4d9 lukechampine.com/us/renter/renterutil.(*PseudoFS).flushSectors(0xc0001d2000, 0x0, 0x4c2878210965be6) /Users/junpei/pkg/mod/lukechampine.com/us@v0.15.0/renter/renterutil/fileops.go:283 +0x178 lukechampine.com/us/renter/renterutil.(*PseudoFS).Close(0xc0001d2000, 0x0, 0x0) /Users/junpei/pkg/mod/lukechampine.com/us@v0.15.0/renter/renterutil/filesystem.go:429 +0x9b github.com/storewise/benchmark/pkg/wave.(*Task).upload.func1(0xc0001d2000, 0xc0004f7aa0) /Users/junpei/src/github.com/storewise/benchmark/pkg/wave/task.go:167 +0x2f panic(0x1757700, 0x19acb50) /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/panic.go:969 +0x166 lukechampine.com/us/renter.simpleRedundancy.Encode(0x1, 0xc001a6e000, 0x400037, 0x402000, 0xc000472000, 0x1, 0x1) /Users/junpei/pkg/mod/lukechampine.com/us@v0.15.0/renter/reedsolomon.go:112 +0x263 lukechampine.com/us/renter/renterutil.(*PseudoFS).fillSectors(0xc0001d2000, 0xc000136960, 0xc0004f71d8, 0xffffffffffffffff) /Users/junpei/pkg/mod/lukechampine.com/us@v0.15.0/renter/renterutil/fileops.go:256 +0x4d9 lukechampine.com/us/renter/renterutil.(*PseudoFS).flushSectors(0xc0001d2000, 0xc000136960, 0x400080) /Users/junpei/pkg/mod/lukechampine.com/us@v0.15.0/renter/renterutil/fileops.go:283 +0x178 lukechampine.com/us/renter/renterutil.(*PseudoFS).fileWriteAt(0xc0001d2000, 0xc000136960, 0xc000dc8000, 0x400000, 0x400000, 0x400fb7, 0x400000, 0x400000, 0x0) /Users/junpei/pkg/mod/lukechampine.com/us@v0.15.0/renter/renterutil/fileops.go:536 +0x34b lukechampine.com/us/renter/renterutil.(*PseudoFS).fileWrite(0xc0001d2000, 0xc000136960, 0xc000dc8000, 0x400000, 0x400000, 0x400000, 0x400000, 0x0) /Users/junpei/pkg/mod/lukechampine.com/us@v0.15.0/renter/renterutil/fileops.go:358 +0x60 lukechampine.com/us/renter/renterutil.PseudoFile.Write(0xc000040150, 0x5, 0x0, 0x602, 0xc0001d2000, 0xc000dc8000, 0x400000, 0x400000, 0x0, 0x0, ...) /Users/junpei/pkg/mod/lukechampine.com/us@v0.15.0/renter/renterutil/filesystem.go:555 +0x213 io.copyBuffer(0x19bf060, 0xc00045c0c0, 0x19bef40, 0xc0003d80a0, 0xc000dc8000, 0x400000, 0x400000, 0x17ea7e0, 0xc0001d2001, 0xc0003d80a0) /usr/local/Cellar/go/1.14.2_1/libexec/src/io/io.go:407 +0x1fb io.CopyBuffer(0x19bf060, 0xc00045c0c0, 0x19bef40, 0xc0003d80a0, 0xc000dc8000, 0x400000, 0x400000, 0x0, 0x0, 0x1854620) /usr/local/Cellar/go/1.14.2_1/libexec/src/io/io.go:378 +0x82 github.com/storewise/benchmark/pkg/wave.(*Task).upload.func2(0x0, 0x0) /Users/junpei/src/github.com/storewise/benchmark/pkg/wave/task.go:201 +0x472 github.com/avast/retry-go.Do(0xc0004f7a00, 0x0, 0x0, 0x0, 0x0, 0x0) /Users/junpei/pkg/mod/github.com/avast/retry-go@v2.6.0+incompatible/retry.go:114 +0x15b github.com/storewise/benchmark/pkg/wave.(*Task).upload(0xc0004f7cc0, 0x19cf160, 0xc00045c900, 0xc00013a500, 0x0, 0x0, 0x0) /Users/junpei/src/github.com/storewise/benchmark/pkg/wave/task.go:182 +0x60f github.com/storewise/benchmark/pkg/wave.(*Task).Run(0xc0004efcc0, 0x19cf160, 0xc00045c900, 0x7ffeefbfec07, 0x48, 0xc00000eac0, 0x19cf160, 0xc00045c900, 0x7ffeefbfec0f) /Users/junpei/src/github.com/storewise/benchmark/pkg/wave/task.go:78 +0x2ff main.run(0x0) /Users/junpei/src/github.com/storewise/benchmark/cmd/wave/main.go:99 +0x689 main.main() /Users/junpei/src/github.com/storewise/benchmark/cmd/wave/main.go:48 +0x22