Enhancements
- Snapshot LSS type separation. Decoupled the read-only label set snapshot into a dedicated
SnapshotLSStype with its own variant, reducing the active head's variant footprint and improving type safety. - GOST-compliant build hardening. Enabled
FORTIFY_SOURCE=2, stack protector, position-independent code, and additional compiler warnings (null-dereference, division-by-zero, array-bounds) across all C++ code including third-party libraries. - GCC 14 and clang-tidy 21. Upgraded the C++ toolchain to GCC 14.2.0 and clang-tidy 21.1.8 with new
bugprone-*diagnostics enabled; all findings resolved. - Go
/sync/*runtime metrics. The Prometheus Go collector now exports mutex and semaphore contention statistics fromruntime/metrics(/sync/*) alongside the existing GC and scheduler metrics, making locker contention observable in production. - Jemalloc resident memory metric. Exposed jemalloc's resident set size as a new metric alongside the existing allocated/mapped stats, giving operators clearer visibility into the C++ allocator's memory footprint.
- Chunk recoder optimization. Switched the chunk recoder to a seek-based decode iterator and tuned the Prometheus
chunkencencoder with[[likely]]annotations, giving roughly a 10% speedup on the recoder benchmark. - Remote write data source refactor. Reworked the WAL/encoder pipeline — extracted
SegmentSamplesStorage, added a V2 WAL reader andDataSourceV2, and the shard now transparently switches between WAL format versions. - Merge-shard series sets. New generic
mergeShardSeriesSet/mergeShardChunkSeriesSetiterators stream across shards without an intermediate merge buffer, lowering query memory pressure on sharded heads. - Jemalloc arena pool recycling. Arenas returned to the free pool are now reset and purged instead of being destroyed, with updated jemalloc build options. New metrics report arena pool releases and reclaimed bytes (
prompp_common_jemalloc_arena_pool_*). Carried over from v0.7.11.
Fixes
- Remote-read snappy DoS (CVE-2026-42154). Backported the upstream fix (GHSA-8rm2-7qqf-34qm) —
/api/v1/readnow rejects snappy-compressed payloads whose declared decoded length exceeds the 32 MiB decode limit before allocation, preventing memory exhaustion via crafted small requests. - OpenTelemetry security update. Upgraded
go.opentelemetry.io/otel/sdkand theotlptracehttpexporter to v1.43.0 — mitigates a PATH hijacking CVE (GHSA-hfvc-g4fc-pqhx) in the BSD host-id detector and adds a 4 MiB response body limit to OTLP HTTP exporters, protecting against memory exhaustion from a misbehaving collector. - Close WAL on shard rotation. Shard rotation now explicitly closes the outgoing WAL via a dedicated
ClosedWalsentinel instead of leaking the handle, preventing stale WAL readers from racing with newly-rotated shards. - Go 1.26.3. Bumped Go to 1.26.3, pulling in stdlib security fixes from the 1.26.x series.
- aarch64 jemalloc page size. Aligned the jemalloc build with the aarch64 host page size so ARM64 builds no longer hit a configuration mismatch under the GCC 14 toolchain.
Other
- Bazel Bzlmod migration. Migrated
pp/to Bzlmod and refreshedrules_cc,rules_foreign_cc, andbazel_clang_tidyto resolve dependency conflicts that had blocked further updates of the C++ build stack.