Ray's Knowledge Base
Unlock

dftracer_split output has no completion marker and keeps source "end" records mid-file

FactVerified 24 Oct 2026Holds dftracer-utils: 0.0.14.post8.dev0
Fact. A statement and the evidence for it.

Statement#

dftracer_split --compress writes <app>-<N>_chunk<M>.pfw.gz files only: no manifest, no marker, and the records are copied verbatim, so the writer's {"name":"end"} record of each source file appears at an arbitrary position inside a chunk (measured 9, 11 and 9 end records across three chunks, with last records fopen, fclose, end). A complete chunk and a chunk still being written both end on a gzip member boundary, because gzip members are flushed as they fill. Consequence: "last record == end" identifies a finished raw trace file exactly, but proves nothing for a split chunk; completion of a compact set can only come from an external signal (a marker file, a manifest, or quiet time).

Evidence#

Ran dftracer_split -d /tmp/split_in -o /tmp/split_out --compress on 29 files of ~/Code/llnl/dftracer-traces/moirai/elmerfold/20260930_234947 (3 chunks, 814007 records, 2.42 s). ls -la /tmp/split_out listed only app-1_chunk0.pfw.gz, app-2_chunk0.pfw.gz, app-3_chunk0.pfw.gz. Counting records per chunk gave 322442/320561/171004 with 9/11/9 end records and last records fopen/fclose/end. TraceData over the 3 chunks reported the same 718533 events and the same span as the 29 raw files. dfdashboard therefore uses the end record only for raw sets and treats a compact set as done after settle_s of quiet, or immediately when the directory holds _SUCCESS/.done/manifest.json/split.json. See dfdashboard/data/watch.py.