From c3d3523bb3cafa4ae8158f129f64b2e4ead7922e Mon Sep 17 00:00:00 2001 From: Nicola Puppa Date: Tue, 14 May 2024 09:21:26 +0200 Subject: [PATCH] fix: add highestPosition to logStorage --- .../camunda/zeebe/process/test/engine/InMemoryLogStorage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/main/java/io/camunda/zeebe/process/test/engine/InMemoryLogStorage.java b/engine/src/main/java/io/camunda/zeebe/process/test/engine/InMemoryLogStorage.java index 4a4fc773f..7bda0d4da 100644 --- a/engine/src/main/java/io/camunda/zeebe/process/test/engine/InMemoryLogStorage.java +++ b/engine/src/main/java/io/camunda/zeebe/process/test/engine/InMemoryLogStorage.java @@ -54,9 +54,9 @@ public void append( logEntries.add(blockBuffer); final int index = logEntries.size(); positionIndexMapping.put(lowestPosition, index); - listener.onWrite(index); + listener.onWrite(index, highestPosition); - listener.onCommit(index); + listener.onCommit(index, highestPosition); commitListeners.forEach(CommitListener::onCommit); }