Kedge

You can't retire an old service until you can prove no accepted work gets lost in the switch.

BLOCKED
306/306 of its own tests pass.15 accepted messages unaccounted for after cutover.9 finished messages came back.
-z 1024, declaredstock programprocess isolation on the Mac, not a containernaive foil: constructed with knowledge of the near-limit edge
SEEDSYNTHETICLeah, integration maintainer

All its own tests pass, and the check measured 15 lost and 9 finished messages back. Scenario messages are SYNTHETIC.

SEED: target, not measuredRecorded runs on the real original, replayed read-only. Seed rows are labelled SEED. Run run-seed-0003-block. Kedge has not measured anything yet.

01 / 08

The rejection

A replacement that passes every one of its own tests was turned away. It grades its own work. The messages it dropped were never in those tests.

The program being retired

name
beanstalkd stock at 25085c5 (seed text; a real record carries the program's own wording)
licence
MIT-style permissive licence sha256:bad1fd0e5c
binary hash
sha256:58d45e6bad82a56bb83d
build kind
stock
flags
/seed/frozen/beanstalkd-25085c5 -l 127.0.0.1 -p {port} -b {recovery_dir} -z 1024 -s 1048576
durability
persistence on; log sync every 50 ms

Stock build, unmodified. The hash above is the frozen binary that ran. Nothing to disclose.

Which rules lost it

naive foil: constructed with knowledge of the near-limit edge. The naive and reconciling rule sets are constructed foils, written knowing the edge. They show what a reasonable-looking recovery does, and they are not blind work. Prepared is a reference repair, PREPARED, the labelled fallback: live, Argon writes the repair.

Consequences are counted at message level only.

02 / 08

The flip

Workers agree with each other. That counts for nothing until a probe runs against the real original. Then a belief changes, or it does not.

Wonder DONESpark-h01 DONESpark-h02 DONESpark-h03 DONESpark-h04 DONESpark-h05 DONESpark-h06 DONESpark-h07 DONESpark-h08 DONESpark-p1 DONESpark-p2 DONESpark-p3 DONESpark-p4 DONESpark-c1 DONESpark-c2 DONESpark-c3 DONESpark-h09 IDLESpark-h10 CAPPED

Wonder and Spark investigate. They never write code. 23 of 24 agents listed here worked in this run.

ClaimStateAgreement (never enough)If wrong
H-01 Whatever the original accepts with put, it replays on the next start from the same log.INFERREDbecameREFUTED3 concur, 1 dissent (from Spark-h01)If wrong, accepted messages vanish on a restart and nothing fails: the server's own counts agree with what is left.
H-02 A body of exactly the size limit, or one byte under it, is accepted, then refused on replay, and the rest of that log file is ignored.INFERREDbecameOBSERVED1 concur, 1 dissent (from Spark-h03)If wrong, a recovery that trusts the replay loses every pending message after the large one and brings finished ones back.
H-03 A consumer that drops its connection mid-work hands the job back at once, not after the time limit.OBSERVED1 concur, 2 dissent (from Spark-h02)If wrong, a dead consumer's message waits out its limit during the switch and looks lost.
H-04 A job still reserved when its time limit passes goes back to ready.OBSERVED1 concur, 0 dissent (from Spark-h04)If wrong, every message in flight at the switch is read as done and never processed.
H-05 A job delayed past the cutover keeps its remaining delay.UNKNOWN0 concur, 1 dissent (from Spark-h04)Not probed: the receipt lists it as an unknown, never as a pass.
H-06 Two consumers reserving at the same instant never receive the same job.INFERRED3 concur, 0 dissent (from Spark-h05)Agreement among five workers is shown here and promotes nothing. Only a probe can.

The one uncommon part, in the original's own words: sizes and limits

It wrote 3 lines to stderr when it started again

  1. stderr …/recovery/binlog.1:132: job 2 is too big (1025 > 1024)
  2. stderr /seed/frozen/beanstalkd-25085c5: Errors reading one or more WAL files.
  3. stderr /seed/frozen/beanstalkd-25085c5: Continuing. You may be missing data.

Its binlog files

filebytes
binlog.11,048,576
binlog.21,048,576
lock0
after the restartbody bytesstill there
The job before yours24yes
Your message1,023gone
The job after yours23gone
-z 1024, declaredprocess isolation on the Mac, not a container

/seed/frozen/beanstalkd-25085c5 -l 127.0.0.1 -p 62000 -b /seed/rehearsal/original/recovery -z 1024 -s 1048576

What the tracer saw on the seed's example lines, not a measurement, line by line. Probe pr-03-near-limit SEED pids 4121, 4188 · process isolation on the Mac, not a container

  1. 0 ms exec /seed/frozen/beanstalkd-25085c5 -b /seed/rehearsal/original/recovery -z 1024
  2. 36 ms SIGKILL process ended on SIGKILL, exit -9
  3. 71 ms stderr …/recovery/binlog.1:132: job 2 is too big (1025 > 1024)
  4. 71 ms stderr /seed/frozen/beanstalkd-25085c5: Errors reading one or more WAL files.
  5. 71 ms stderr /seed/frozen/beanstalkd-25085c5: Continuing. You may be missing data.
  6. 71 ms binlog after start: binlog.1 1048576 bytes
  7. 71 ms binlog after start: binlog.2 1048576 bytes
  8. 71 ms binlog after start: lock 0 bytes

03 / 08

The repair

04 / 08

The independent check

NOT VERIFIED The executor never ran, so identity, reproducibility and conformance are all NOT VERIFIED.

05 / 08

The stop

NOT VERIFIED No approval was requested, so nothing was stopped.

06 / 08

The fence and the count

The stop did not happen in this record. The count below is what the check measured before it.

With the naive rules, measured on the original, of 201 acceptednaive foil: constructed with knowledge of the near-limit edge
15
accepted, then lost
pending messages that vanished
9
finished, then came back
work already done, handed out a second time

The naive and reconciling rule sets are constructed foils, written knowing the edge. They show what a reasonable-looking recovery does, and they are not blind work. Prepared is a reference repair, PREPARED, the labelled fallback: live, Argon writes the repair.

NOT VERIFIED After the stop: lost and came-back are NOT MEASURED. The stop did not complete in this record, so there is no count after it.

Under the naive rules, 9 finished messages would reach the sink a second time. No sink tally in this record, so duplicates at the sink are NOT VERIFIED.

15
accepted messages unaccounted for (of 201 accepted)
  1. 15

No sink tally. That reads NOT VERIFIED, never clean.

07 / 08

The return

NOT VERIFIED The way back was not tested. That reads NOT VERIFIED, never PASS.

08 / 08

The receipt

One receipt. Three separate claims, attempts against effects, the unknowns, the way back, the exact flags.

BLOCK

  • 15 accepted messages unaccounted for
  • 9 finished messages would be delivered again
  • not measured: identity
  • not measured: reproducible build
  • not measured: conformance
  • not measured: sink tally
  • not measured: return test
-z 1024, declaredstock programprocess isolation on the Mac, not a containernaive foil: constructed with knowledge of the near-limit edge

Candidate 46284b98939fc67c. SEED SEED: target, not measured.

Open the receipt