test(raft-apply-decoupling): idempotent and ordered re-application of apply seam (task 2.4)

Add test_apply_reapply_idempotency.c (3 tests, no production changes):
triple-reapplication of an identical job submit with hook-count and
pointer-identity assertions across every call, the NOOP_DUPLICATE
guard branch (untested by task 2.2), and the task's named scenario --
real SUBMIT then real FINISH then a stale out-of-order START, all
through the real apply_committed_entry() dispatch -- confirming the
job stays terminal with no spurious notification.

Closes out task-group 2 (shared apply seam for committed entries).
This commit is contained in:
Rongsong Shen 2026-07-04 00:44:55 +00:00
parent 50d016d905
commit 8febd663d5
4 changed files with 386 additions and 2 deletions

View file

@ -160,6 +160,7 @@ controller_unit_test_src = [
'testsuite/test_apply_seam.c',
'testsuite/test_apply_committed_entry.c',
'testsuite/test_replay_apply_seam.c',
'testsuite/test_apply_reapply_idempotency.c',
'ctrlstatus.c',
'commit.c',
'job.c',