fix(lambda): leave NextMarker out of the last page of durable execution state (#8263)

The invocation event's InitialExecutionState carried "NextMarker": "",
and so did the last page of GetDurableExecutionState. AWS leaves the key
out in both places, and Floci now does the same. A page with operations
left still carries NextMarker.
This commit is contained in:
TATSUNO “Taz” Yasuhiro authored and GitHub committed 2026-11-13 23:32:26 -04:00
1 parent ea8d875cad
commit 235179313b
4 files changed
+36 -4

No files matched your search

@@ -312,7 +312,7 @@ public class DurableExecutionService implements Resettable {
indexed.add(new Cursored<>(String.format("%010d", i), operations.get(i)));
}
PaginatedResult<DurableOperation> page = paginate(indexed, pageSize(maxItems), marker, "durable-state");
return new StatePage(page.items(), page.nextToken() != null ? page.nextToken() : "");
return new StatePage(page.items(), page.nextToken());
}
/** Stopping a closed execution changes nothing and reports the time it closed. */
@@ -64,7 +64,6 @@ public final class DurableWire {
for (DurableOperation operation : execution.replayedOperations()) {
operations.add(operation(operation, true));
}
state.put("NextMarker", "");
ArrayNode updated = event.putArray("UpdatedOperationIds");
updatedOperationIds.forEach(updated::add);
return event;