The JasperFx team built an out-of-process chaos rig that kills, freezes and starves real Wolverine nodes while injecting database and network latency, all to break the transactional inbox/outbox promise. The message-loss and duplication bugs it uncovered are fixed in Wolverine 6.63.0, and every configuration the rig covers now runs clean.
Key points
- Wolverine 6.63.0 is the outcome of a multi-day chaos-testing push against inbox/outbox durability.
- Default envelope IDs omitted the process ID, so two processes on one host shared 9,233 of 200,000 generated IDs.
- After a commit that failed client-side, Wolverine now checks whether the inbox row is handled before dead-lettering.
- A resumed node's retry is now fenced on the inbox row's owner_id, so another node's row cannot be deleted.
- Outbox-to-queue moves on MySQL, SQL Server and SQLite are now a single transaction instead of INSERT plus DELETE.
- The rig lives in src/Testing/DurabilityChaosRig, stays out of CI, and is driven entirely by environment variables.
Real-world use
- An order or payment backend that runs everything through an outbox and cannot afford a lost message when a process dies.
- A team running several Wolverine nodes on one host and hitting primary key violations from colliding envelope IDs.
- A multi-tenant SaaS with database-per-tenant on different ports, where scheduled messages stopped running entirely.
This summary was generated by the agent from the original post on JasperFx (Critter Stack) Blog. The full text and all rights belong to its author and publisher. Go to original