B_BIG.exe × 700 storm showed three different failure modes across
runs — runs 28/29 left blank rows (AppendBlank acked, REPLACEs
lost) and instances dying silently; run 30 fell at 54 167 / 70 000
with 187 partial instances, ~370 cascading
SetField/AppendBlank/GotoTop: server error and 13 recv() failed.
Server ads_err was EMPTY during the kill window — the server never
returned Error frames; all damage was client-side. The new
OPDUMP per-opcode telemetry (OPENADS_OPDUMP=1) pinned the physics:
- CDX write-lock convoy. The process-wide per-path CDX write lock (one entry for TestIndex.cdx shared by all 700 sessions) queued appends for up to 52.7 s per op (server batch deadline: 60 s).
- Client
SO_RCVTIMEOwas 30 s — BELOW the server deadline. When an op exceeded 30 s the client'srecv()expired, the late reply stayed in the socket buffer, and the next request on the shared connection consumed that stale frame: opcode mismatch → cascading "server error" → instance death. Blank rows = AppendBlank acked but SetField lost to the desync.
- Wire client:
SO_RCVTIMEO30 s → 180 s — clears the 60 s server deadline with margin; a genuinely dead connection is still detected by keepalive + transport poisoning. - Wire client:
RemoteConnection::request()now poisons the transport (closes it) on any send/recv failure. Frame desync becomes impossible: later requests fail fast withAE_NO_CONNECTION(5036) instead of consuming a stale reply. - CDX convoy mitigation: write-lock waiter handoff (the OS
byte lock stays parked for the next waiter, capped at 64 handoffs
so external peer processes still get their turn), per-append
AdsFlushFileBuffersdropped — durability is now delivered atDbCommit→FlushTable(removes a ~9× CDX page-write multiplication under the storm), an in-process DBF append gate (one kernel waiter-IRP instead of 700), andhandle_registryreader paths moved toshared_mutex.
Also in this release (storm fixes from the same campaign):
AdsOpenIndex: single shared exists-check (the5018 OpenIndexflood is gone) and a refresh snapshot of the index-bindings map;- OPDUMP telemetry:
OPENADS_OPDUMP=1makes serverd sample per-opcode latency (count/avg/max) every 10 s into the error log; - session/worker exception containment: a failing handler (e.g.
bad_alloconce the address space is exhausted) closes the session instead of killing the whole server; serverd is linked LARGEADDRESSAWARE.
Two consecutive instrumented storm runs PASS: 70 000 / 700
instances exact, 0 missing, 0 blank, 0 RTERROR, full CDX integrity
walk clean (runs 31 + 32 on unmodified B_BIG.exe).
B_BIG.exe× 700 against a fresh server: expect 70 000 rows, every instance heartbeatOK|0, noRTERRORlines, no blank rows.- Normal app paths: nothing changed in the protocol — drop-in serverd + ace32/ace64 replacement, no config or client changes.
- If a server seems slow under load, set
OPENADS_OPDUMP=1and read the OPDUMP/OPI records inads_err.dbf: top opcodes by avg latency point straight at the queue.
openads-1.09.21-windows-x64.zipopenads-1.09.21-windows-x86.zipopenads-1.09.21-linux-x64.tar.gzopenads-1.09.21-macos-universal.tar.gz