Skip to content

mcp-data-platform-v1.146.2

Choose a tag to compare

@github-actions github-actions released this 16 Oct 20:19
· 108 commits to main since this release
e645222

Summary

v1.146.2 fixes two bugs in reading webhook sources, both from the open-window rollup v1.146.1 added (#2132). Any deployment on v1.146.1 that receives webhooks should upgrade. Queries over a source's current window could fail, and between failures they could return inflated numbers with no error. Compacted, closed windows were never affected.

Fixed

Queries over a recent window failed with HIVE_CANNOT_OPEN_SPLIT (#2140)

Every 5 minutes, v1.146.1 merged a source's open-window segments into one rollup-*.jsonl.gz and deleted the merged segments 2 minutes later. A query that listed the window before the delete and read it after failed, for example:

EXTERNAL: Error opening Hive split s3://.../webhooks/<source>/raw/dt=.../hour=.../minute=00/<segment>.jsonl.gz (HIVE_CANNOT_OPEN_SPLIT)

Because rollups ran on a fixed cycle, a scheduled reader whose fire time lined up with the deletes (a dashboard refresh, an automation) failed on every cycle.

Now: a raw segment is never deleted while its window is open. The rollup is removed. Raw files are released only by retention, after the window is compacted, as in v1.146.0.

Recent counts were inflated, with no error (#2140)

For the 2 minutes between a rollup and its delete, each merged event was in its segment and in the rollup, and the view webhook_<source> returned it twice. That was up to 40% of the time on a busy source. Any count, sum or dashboard tile over the current window run then was too high and reported nothing wrong. A rollup pass that stopped partway kept its events double-counted until the window compacted.

Now: the raw side of the view keeps one event per event_id in each window, the earliest received (then the earliest written), which is the event compaction keeps. A window returns the same rows before and after it is compacted. This also covers a sender's retries, which the current window returned twice in earlier releases too. webhook_<source>_raw still returns every stored copy.

Upgrading from v1.146.1

  • No action is needed for existing sources. On its first pass after startup, the compactor rewrites the view of every existing source. A source whose view can't be rewritten is retried on the next pass. New sources get the new view when they are created.
  • Files v1.146.1 wrote are read correctly. Rollups already in a window are read through the deduplicating view, so their events count once. The hidden .rollup-*.keys lists beside them are skipped by Trino and by compaction. All of it is removed when retention releases the window's raw files.
  • Retired settings still start. webhooks.compactor.rollup_check_every and webhooks.compactor.rollup_delete_delay are still accepted and are logged once as deprecated_key ("webhook settings no longer read"). Nothing reads them. If you set rollup_delete_delay: 61m to stop rollups on v1.146.1, this release starts with it; remove it when convenient.
  • API change: the source setting rollup_every_minutes is gone. The admin API refuses unknown fields, so POST or PUT /api/v1/admin/webhooks/sources with config.rollup_every_minutes is now answered 400. Drop the field from any script or client that sends it. Stored sources that carry it load normally.
  • Source editor: Merge recent raw files every (minutes) is no longer in Admin > Webhooks.

Removed

  • The open-window rollup, its per-source rollup_every_minutes setting and its pacing keys (above).
  • The save warning about "segments between rollups". Without a rollup it would fire on default settings. The source status still reports segments_open_window and segments_per_window_p95, which the Webhooks page shows, for operators watching how many files a reader of the current window reads.
  • Guidance for busy sources: if queries over the current window are slow because the window holds thousands of segments, set a shorter compact_every_minutes on that source. Each window is then compacted sooner and holds fewer segments.

Other changes

  • Compaction's recorded segment count for a window now includes only files that hold events, leaving out the hidden lists.
  • Docs: Inbound Webhooks replaces "The open window's rollup" with "Reading the open window", and the configuration reference marks the two retired keys.

Changelog

Bug Fixes

Installation

Homebrew (macOS)

brew install txn2/tap/mcp-data-platform

Claude Code CLI

claude mcp add mcp-data-platform -- mcp-data-platform

Docker

docker pull ghcr.io/txn2/mcp-data-platform:v1.146.2

Verification

All release artifacts are signed with Cosign. Verify with:

cosign verify-blob --bundle mcp-data-platform_1.146.2_linux_amd64.tar.gz.sigstore.json \
  mcp-data-platform_1.146.2_linux_amd64.tar.gz

Archives and checksums also carry GitHub artifact attestations. Verify with:

gh attestation verify mcp-data-platform_1.146.2_linux_amd64.tar.gz \
  --repo txn2/mcp-data-platform