chrislu
0cda3b9dc8
refactor: replace TotalShards field with Total() method
- Remove TotalShards field from ECContext to avoid field drift
- Add Total() method that computes DataShards + ParityShards
- Update all references to use ctx.Total() instead of ctx.TotalShards
- Read EC config from VolumeInfo when loading EC volumes
- Read data shard count from .vif in VolumeEcShardsToVolume
- Use >= instead of > for exact boundary handling in encoding loops
1 month ago
chrislu
484ce95669
refactor: update ec_test.go to use ECContext
- Update TestEncodingDecoding to create and use ECContext
- Update validateFiles() to accept ECContext parameter
- Update removeGeneratedFiles() to use ctx.TotalShards and ctx.ToExt()
- Test passes with default 10+4 configuration
1 month ago
chrislu
07f4998188
add dat file size into vif for EC
1 year ago
chrislu
3a2e21fee7
fix EC reading on nLargeBlockRows
fix https://github.com/seaweedfs/seaweedfs/issues/5465
1 year ago
Lars Lehtonen
f24c7e803f
weed/storage/erasure_coding: Close() after error handling
2 years ago
Lars Lehtonen
d762b12e11
weed/storage/erasure_coding: fix dropped test error
2 years ago
chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
3 years ago
bingoohuang
7256902fb0
fix typo offset.ToAcutalOffset to offset.ToActualOffset
5 years ago
Chris Lu
6a92f0bc7a
refactoring to typed Size
Go is amazing with refactoring!
5 years ago
Chris Lu
0871d2cff0
volume: fix memory leak during compaction
fix https://github.com/chrislusf/seaweedfs/issues/1222
6 years ago
Chris Lu
8d94564f41
refactor
6 years ago
Chris Lu
58f88e530c
volume: use sorted index map for readonly volumes
6 years ago
j.laycock
6fc6322c90
Change joeslay paths to chrislusf paths
6 years ago
j.laycock
595a1beff0
Swap imports to use joeslay
6 years ago
Chris Lu
5c6c757619
clean up test files
7 years ago
Chris Lu
5dd67f9acf
reading by recover from other shards
7 years ago
Chris Lu
b4b407e403
add grpc ec shard read
7 years ago
Chris Lu
a4f3d82c57
convert needle id to ec intervals to read from
7 years ago
Chris Lu
f0e6574d5e
allocate ec shards to volume servers
7 years ago
Chris Lu
fbbc74abb4
adds VolumeEcGenerateSlices, VolumeEcCopy
7 years ago
Chris Lu
693d6c0f1b
clean up tests
7 years ago
Chris Lu
6386a3174b
able to validate by randomly selected ec files
7 years ago
Chris Lu
7c2c60c376
add locating data inside the ec files
7 years ago
Chris Lu
87f63b9c08
generate ec01~ec14, generate ecx file with sorted needle values
7 years ago
Chris Lu
8156958ee9
move function to make travis happy
7 years ago
Chris Lu
0a36f628c6
testing RS coding
7 years ago