mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-15 08:18:42 +01:00
mount: model the refused async flush as a replaced file in recovery tests (#12628)
A peer's chunk append now merges into the flush, so these tests no longer saw the refusal they exercise. A replaced file is still refused. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fdd3a692d3
commit
68b6a2ed08
1 file changed
+3
-1
@@ -40,7 +40,9 @@ func committedContentHandle(t *testing.T, peer bool) (*WFS, *FileHandle, *commit
|
||||
base.CommitTsNs = 100
|
||||
current := proto.Clone(base).(*filer_pb.Entry)
|
||||
if peer {
|
||||
current.Chunks = append(current.Chunks, flushConditionEntry(1, 2).Chunks[1])
|
||||
// A peer replaced the file: the flush cannot merge into it.
|
||||
current = flushConditionEntry(4)
|
||||
current.Attributes.Inode = 99
|
||||
current.CommitTsNs = 101
|
||||
}
|
||||
s := &committedContentFiler{contentFlushConditionFiler: contentFlushConditionFiler{entry: current}}
|
||||
|
||||
Reference in new issue
Block a user