English
BinlogViz v0.20.3 Release Notes
Release date: 2026-04-22
Changes
- Replace offset-based last-timestamp probing with sequential inference: The previous
probeLastTimestampfunction parsed from the last 256KB of each binlog file to findLastEventAt. On large files the offset lands mid-event, causing parse errors that leaveLastEventAtzero — making the probing useless for the files that need it most. The new approach probes onlyFirstEventAtper file (reliable, starts from offset 0) and then infersLastEventAt[N]fromFirstEventAt[N+1]. Since binlog files are written sequentially with monotonically increasing timestamps, this inference is always reliable. The last file in a sequence keeps zeroLastEventAt(conservative inclusion by the planner). The fallback full-parse path remains unchanged and still sets exactLastEventAt.
Bug Fixes
None.
Breaking Changes
None.
中文
BinlogViz v0.20.3 发布说明
发布日期:2026-04-22
变更
- 用顺序推断替换基于 offset 的末尾时间戳探测:之前的
probeLastTimestamp函数从每个 binlog 文件末尾 256KB 处解析以获取LastEventAt。在大文件上,偏移量落在事件中间会导致解析错误,LastEventAt留零——在最需要过滤的场景下反而无效。新方法只探测每个文件的FirstEventAt(从 offset 0 开始,可靠),然后从FirstEventAt[N+1]推断LastEventAt[N]。由于 binlog 文件按序写入且时间戳单调递增,这个推断始终可靠。序列中最后一个文件的LastEventAt保持为零(planner 保守包含)。全量解析的 fallback 路径不变,仍然设置精确的LastEventAt。
Bug 修复
无。
破坏性变更
无。