Skip to content

Commit 902d736

Browse files
authored
Fix k3po does not reload labels when labels file size decreases (#972)
1 parent 225ab3c commit 902d736

File tree

1 file changed

+1
-1
lines changed
  • runtime/engine/src/test/java/io/aklivity/zilla/runtime/engine/test/internal/k3po/ext/behavior

1 file changed

+1
-1
lines changed

runtime/engine/src/test/java/io/aklivity/zilla/runtime/engine/test/internal/k3po/ext/behavior/LabelManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private void checkSnapshot()
9898
this.sizeInBytes = -1L;
9999
}
100100

101-
if (this.sizeInBytes == -1L || this.sizeInBytes < Files.size(labelsPath))
101+
if (this.sizeInBytes == -1L || this.sizeInBytes != Files.size(labelsPath))
102102
{
103103
Files.createDirectories(labelsPath.getParent());
104104
try (FileChannel channel = FileChannel.open(labelsPath, CREATE, READ, WRITE))

0 commit comments

Comments
 (0)