diff --git a/app/src/gen/ProviderIncident.ts b/app/src/gen/ProviderIncident.ts index fabe44f8b..b155b3213 100644 --- a/app/src/gen/ProviderIncident.ts +++ b/app/src/gen/ProviderIncident.ts @@ -12,4 +12,8 @@ import type { TerminationReason } from "./TerminationReason"; import type { TimescaleRelationLabel } from "./TimescaleRelationLabel"; import type { YsqlStorageRequest } from "./YsqlStorageRequest"; -export type ProviderIncident = { "kind": "mysql-digest-regression", regression: MysqlDigestRegression, } | { "kind": "postgres-cleanup-horizon", pin: PostgresCleanupPin, } | { "kind": "connection-refusals", interval: MysqlConnectionRefusalInterval, } | { "kind": "innodb-purge-backlog", crossing: InnodbPurgeBacklog, } | { "kind": "innodb-waits", interval: InnodbWaitInterval, } | { "kind": "postgres-replication-errors", interval: PostgresErrorInterval, } | { "kind": "replication-member-change", interval: ReplicationMemberInterval, } | { "kind": "replication-pressure", trigger: ReplicationPressureTrigger, } | { "kind": "sequence-boundary", sequence: string, } | { "kind": "auto-increment-boundary", column: string, } | { "kind": "checksum-failure", at: string, } | { "kind": "archive-failure", at: string, wal: string, } | { "kind": "replication", problem: ReplicationIncident, } | { "kind": "ysql-storage-wait", request: YsqlStorageRequest, } | { "kind": "tserver-memory-limit", node: string, } | { "kind": "ysql-termination", node: string, reason: TerminationReason, ended_at: string, } | { "kind": "timescale-materialization-late", view: TimescaleRelationLabel, max_lag_minutes: number, } | { "kind": "timescale-job-failed", job: string, started_at: string, finished_at: string, sql_state: string | null, extension: string, native_run_id: string | null, } | { "kind": "agent-job-failed", job: string, run: string, } | { "kind": "thread-pool-group-stalled", group: number, } | { "kind": "galera-non-primary" } | { "kind": "galera-disconnected" } | { "kind": "group-member-unreachable", member: string, } | { "kind": "group-member-error", member: string, }; +export type ProviderIncident = { "kind": "mysql-digest-regression", regression: MysqlDigestRegression, } | { "kind": "postgres-cleanup-horizon", pin: PostgresCleanupPin, } | { "kind": "connection-refusals", interval: MysqlConnectionRefusalInterval, } | { "kind": "innodb-purge-backlog", crossing: InnodbPurgeBacklog, } | { "kind": "innodb-waits", interval: InnodbWaitInterval, } | { "kind": "postgres-replication-errors", interval: PostgresErrorInterval, } | { "kind": "replication-member-change", interval: ReplicationMemberInterval, } | { "kind": "replication-pressure", trigger: ReplicationPressureTrigger, } | { "kind": "sequence-boundary", sequence: string, +/** + * Older boundary records carry zero remaining steps in their discriminator alone. + */ +remaining_steps?: number, } | { "kind": "auto-increment-boundary", column: string, remaining_steps?: number, } | { "kind": "checksum-failure", at: string, } | { "kind": "archive-failure", at: string, wal: string, } | { "kind": "replication", problem: ReplicationIncident, } | { "kind": "ysql-storage-wait", request: YsqlStorageRequest, } | { "kind": "tserver-memory-limit", node: string, } | { "kind": "ysql-termination", node: string, reason: TerminationReason, ended_at: string, } | { "kind": "timescale-materialization-late", view: TimescaleRelationLabel, max_lag_minutes: number, } | { "kind": "timescale-job-failed", job: string, started_at: string, finished_at: string, sql_state: string | null, extension: string, native_run_id: string | null, } | { "kind": "agent-job-failed", job: string, run: string, } | { "kind": "thread-pool-group-stalled", group: number, } | { "kind": "galera-non-primary" } | { "kind": "galera-disconnected" } | { "kind": "group-member-unreachable", member: string, } | { "kind": "group-member-error", member: string, }; diff --git a/crates/culprit-checks/src/checks/signals/sequence_capacity.rs b/crates/culprit-checks/src/checks/signals/sequence_capacity.rs index 9c317b52d..66e39f0a5 100644 --- a/crates/culprit-checks/src/checks/signals/sequence_capacity.rs +++ b/crates/culprit-checks/src/checks/signals/sequence_capacity.rs @@ -1,6 +1,6 @@ use super::*; use crate::evidence::{Observation, Requirement as Evidence}; -use culprit_core::operations::SequenceCapacity; +use culprit_core::operations::{LowSequenceHeadroom, SequenceCapacity}; pub fn sequence_capacity_info() -> CheckInfo { CheckInfo { @@ -34,15 +34,10 @@ fn near_limits(s: &Snapshot) -> Vec> { let mut out: Vec> = s .sequences() .filter_map(|seq| { - let (remaining, total) = seq.remaining()?; - if total == 0 { - return None; - } - let fraction = remaining as f64 / total as f64; - if fraction > 0.01 && (remaining > 10_000 || fraction > 0.1) { - return None; - } - let severity = if remaining <= 10_000 { Severity::Medium } else { Severity::Low }; + let (remaining, severity) = match seq.low_headroom()? { + LowSequenceHeadroom::FewSteps(steps) => (u128::from(steps), Severity::Medium), + LowSequenceHeadroom::SmallFraction(steps) => (steps, Severity::Low), + }; Some(NearLimit::Sequence { sequence: seq, remaining, severity }) }) .collect(); diff --git a/crates/culprit-core/src/operations.rs b/crates/culprit-core/src/operations.rs index f4e352472..d11db82e4 100644 --- a/crates/culprit-core/src/operations.rs +++ b/crates/culprit-core/src/operations.rs @@ -231,7 +231,32 @@ pub struct SequenceCapacity { pub allocated: bool, } +/// Step counts from a native allocation point to its effective bound. They do not predict a failure time. +pub enum LowSequenceHeadroom { + FewSteps(u16), + SmallFraction(u128), +} + +impl LowSequenceHeadroom { + pub(crate) const FEW_STEPS_LIMIT: u16 = 10_000; +} + impl SequenceCapacity { + pub fn low_headroom(&self) -> Option { + let (remaining, span) = self.remaining()?; + if span == 0 { + return None; + } + // A small absolute count is actionable only in the final tenth of the range. + if remaining <= u128::from(LowSequenceHeadroom::FEW_STEPS_LIMIT) && remaining <= span / 10 { + Some(LowSequenceHeadroom::FewSteps(remaining as u16)) + } else if remaining <= span / 100 { + Some(LowSequenceHeadroom::SmallFraction(remaining)) + } else { + None + } + } + pub fn remaining(&self) -> Option<(u128, u128)> { let (now, step, min, max) = ( self.current.parse::().ok()?, diff --git a/crates/culprit-core/src/telemetry/diagnostics/originals/provider.rs b/crates/culprit-core/src/telemetry/diagnostics/originals/provider.rs index 0cee37b0d..002fce7bd 100644 --- a/crates/culprit-core/src/telemetry/diagnostics/originals/provider.rs +++ b/crates/culprit-core/src/telemetry/diagnostics/originals/provider.rs @@ -46,9 +46,16 @@ pub enum ProviderIncident { }, SequenceBoundary { sequence: String, + /// Older boundary records carry zero remaining steps in their discriminator alone. + #[serde(default, skip_serializing_if = "Option::is_none")] + #[ts(optional)] + remaining_steps: Option, }, AutoIncrementBoundary { column: String, + #[serde(default, skip_serializing_if = "Option::is_none")] + #[ts(optional)] + remaining_steps: Option, }, ChecksumFailure { at: String, @@ -161,8 +168,12 @@ impl ProviderIncident { pub(super) fn valid(&self) -> bool { match self { Self::MysqlDigestRegression { regression } => regression.is_valid(), - Self::SequenceBoundary { sequence } => valid_key(sequence), - Self::AutoIncrementBoundary { column } => valid_key(column), + Self::SequenceBoundary { sequence: name, remaining_steps } + | Self::AutoIncrementBoundary { column: name, remaining_steps } => { + valid_key(name) + && remaining_steps + .is_none_or(|steps| steps.get() <= crate::operations::LowSequenceHeadroom::FEW_STEPS_LIMIT) + } Self::ChecksumFailure { at } => canonical_time(at).is_ok(), Self::PostgresCleanupHorizon { pin } => pin.is_valid(), Self::InnodbWaits { interval } => interval.increase().is_some(), @@ -250,10 +261,6 @@ impl ProviderIncident { } Self::ThreadPoolGroupStalled { group: point.group } } - ( - ProviderIncidentSource::PostgresSequences | ProviderIncidentSource::MysqlAllocators, - crate::ObservationBody::CatalogCounters(point), - ) => sequences::boundary(family, header, row, point)?, _ => postgres::from_operational_record(family, header, row) .or_else(|| mssql::from_operational_record(family, header, row)) .or_else(|| yugabyte::from_operational_record(family, header, row)) diff --git a/crates/culprit-core/src/telemetry/diagnostics/originals/provider/mysql/mod.rs b/crates/culprit-core/src/telemetry/diagnostics/originals/provider/mysql/mod.rs index a72794394..c553ed7f1 100644 --- a/crates/culprit-core/src/telemetry/diagnostics/originals/provider/mysql/mod.rs +++ b/crates/culprit-core/src/telemetry/diagnostics/originals/provider/mysql/mod.rs @@ -9,6 +9,11 @@ pub(super) fn from_operational_record( row: &crate::Observation, ) -> Option { match (family, &row.body) { + (ProviderIncidentSource::MysqlAllocators, crate::ObservationBody::CatalogCounters(point)) + if row.source == "information_schema.tables" && point.catalog.object_type == "auto-increment" => + { + allocation_capacity(header, row, point) + } ( ProviderIncidentSource::GaleraComponent, crate::ObservationBody::Engine(crate::facts::EngineFact::Mysql(crate::facts::MysqlFact::MariadbGalera( @@ -41,6 +46,53 @@ pub(super) fn from_operational_record( } } +fn allocation_capacity( + header: &CollectionDescription, + row: &crate::Observation, + point: &NativeCatalogCounters, +) -> Option { + let identity = &point.catalog.identity; + let properties = &point.catalog.properties; + let name = properties.get("name")?; + if identity.qualifiers.get("schema")? != &header.target.database()?.database + || identity.id != serde_json::to_string(&[name]).ok()? + { + return None; + } + let counter = point.counters.counters.iter().find(|value| { + value.key == "next_value" + && value.native_name == "next_value" + && value.native_object == row.source + && value.scope == point.counters.scope + && value.nature == CounterNature::Gauge + && value.unit == CounterUnit::Count + })?; + let sequence = crate::catalog_projection::mysql_sequence_capacity( + name.clone(), + properties.get("table_name").cloned(), + properties.get("column_type")?, + counter.value.integer()?.to_string(), + positive(properties.get("step")?)?.to_string(), + )?; + let steps = super::sequences::capacity_steps(row, point, &sequence)?; + Some(ProviderIncident::AutoIncrementBoundary { + column: sequence.name, + remaining_steps: std::num::NonZeroU16::new(steps), + }) +} + +pub(super) fn auto_increment_capacity_title(name: &str, remaining_steps: Option) -> String { + match remaining_steps { + None => crate::t!("incident.native.auto.boundary", name = name), + Some(steps) => crate::t!( + "incident.native.auto.near_boundary", + name = name, + n = steps.get(), + count = crate::format::digits(steps.to_string()) + ), + } +} + pub(super) fn observes_healthy_operational( family: ProviderIncidentSource, header: &CollectionDescription, diff --git a/crates/culprit-core/src/telemetry/diagnostics/originals/provider/postgres/mod.rs b/crates/culprit-core/src/telemetry/diagnostics/originals/provider/postgres/mod.rs index f3dbac178..99edcaa0a 100644 --- a/crates/culprit-core/src/telemetry/diagnostics/originals/provider/postgres/mod.rs +++ b/crates/culprit-core/src/telemetry/diagnostics/originals/provider/postgres/mod.rs @@ -13,6 +13,11 @@ pub(super) fn from_operational_record( row: &crate::Observation, ) -> Option { match (family, &row.body) { + (ProviderIncidentSource::PostgresSequences, crate::ObservationBody::CatalogCounters(point)) + if row.source == "pg_sequences" && point.catalog.object_type == "sequence" => + { + allocation_capacity(row, point) + } ( ProviderIncidentSource::PostgresDatabase | ProviderIncidentSource::PostgresArchiver, crate::ObservationBody::CounterSet(point), @@ -67,6 +72,33 @@ pub(super) fn from_operational_record( } } +fn allocation_capacity(row: &crate::Observation, point: &NativeCatalogCounters) -> Option { + let identity = &point.catalog.identity; + positive(&identity.id)?; + positive(identity.qualifiers.get("database_oid")?)?; + if !matches!(point.catalog.properties.get("cycle")?.as_str(), "f" | "false") { + return None; + } + let sequence = crate::catalog_projection::pg_sequence_capacity(point)?; + let steps = super::sequences::capacity_steps(row, point, &sequence)?; + Some(ProviderIncident::SequenceBoundary { + sequence: sequence.name, + remaining_steps: std::num::NonZeroU16::new(steps), + }) +} + +pub(super) fn sequence_capacity_title(name: &str, remaining_steps: Option) -> String { + match remaining_steps { + None => crate::t!("incident.native.sequence.boundary", name = name), + Some(steps) => crate::t!( + "incident.native.sequence.near_boundary", + name = name, + n = steps.get(), + count = crate::format::digits(steps.to_string()) + ), + } +} + pub(super) fn observes_healthy_operational( family: ProviderIncidentSource, header: &CollectionDescription, diff --git a/crates/culprit-core/src/telemetry/diagnostics/originals/provider/presentation.rs b/crates/culprit-core/src/telemetry/diagnostics/originals/provider/presentation.rs index 3fcfb3538..55e9b973e 100644 --- a/crates/culprit-core/src/telemetry/diagnostics/originals/provider/presentation.rs +++ b/crates/culprit-core/src/telemetry/diagnostics/originals/provider/presentation.rs @@ -52,8 +52,12 @@ impl ProviderIncident { Self::ThreadPoolGroupStalled { group } => { crate::t!("incident.mariadb.thread_pool.stalled", group = group.to_string()) } - Self::SequenceBoundary { sequence } => crate::t!("incident.native.sequence.boundary", name = sequence), - Self::AutoIncrementBoundary { column } => crate::t!("incident.native.auto.boundary", name = column), + Self::SequenceBoundary { sequence, remaining_steps } => { + postgres::sequence_capacity_title(sequence, *remaining_steps) + } + Self::AutoIncrementBoundary { column, remaining_steps } => { + mysql::auto_increment_capacity_title(column, *remaining_steps) + } Self::ChecksumFailure { at } => crate::t!("incident.native.checksum", at = at), Self::ArchiveFailure { at, wal } => crate::t!("incident.native.archive", at = at, wal = wal), Self::Replication { problem } => problem.title(), diff --git a/crates/culprit-core/src/telemetry/diagnostics/originals/provider/sequences.rs b/crates/culprit-core/src/telemetry/diagnostics/originals/provider/sequences.rs index 0d118072f..a4bdb4610 100644 --- a/crates/culprit-core/src/telemetry/diagnostics/originals/provider/sequences.rs +++ b/crates/culprit-core/src/telemetry/diagnostics/originals/provider/sequences.rs @@ -1,58 +1,19 @@ -//! An allocation boundary can be established from one native point without predicting an exhaustion date. +//! Exact capacity incidents share the scan policy and require a database-scoped, identity-bound native row. use super::*; -use crate::catalog_projection::{mysql_sequence_capacity, pg_sequence_capacity}; +use crate::operations::{LowSequenceHeadroom, SequenceCapacity}; -pub(super) fn boundary( - family: ProviderIncidentSource, - header: &CollectionDescription, +pub(super) fn capacity_steps( row: &crate::Observation, point: &NativeCatalogCounters, -) -> Option { + sequence: &SequenceCapacity, +) -> Option { if !point.is_valid() || row.key != point.catalog.key().ok()? || point.counters.scope != MeasurementScope::Database { return None; } - let identity = &point.catalog.identity; - let properties = &point.catalog.properties; - let (sequence, incident) = match (family, row.source.as_str(), point.catalog.object_type.as_str()) { - (ProviderIncidentSource::PostgresSequences, "pg_sequences", "sequence") => { - positive(&identity.id)?; - positive(identity.qualifiers.get("database_oid")?)?; - if !matches!(properties.get("cycle")?.as_str(), "f" | "false") { - return None; - } - let sequence = pg_sequence_capacity(point)?; - let incident = ProviderIncident::SequenceBoundary { sequence: sequence.name.clone() }; - (sequence, incident) - } - (ProviderIncidentSource::MysqlAllocators, "information_schema.tables", "auto-increment") => { - let name = properties.get("name")?; - if identity.qualifiers.get("schema")? != &header.target.database()?.database - || identity.id != serde_json::to_string(&[name]).ok()? - { - return None; - } - let counter = point.counters.counters.iter().find(|value| { - value.key == "next_value" - && value.native_name == "next_value" - && value.native_object == row.source - && value.scope == point.counters.scope - && value.nature == CounterNature::Gauge - && value.unit == CounterUnit::Count - })?; - let step = positive(properties.get("step")?)?; - let sequence = mysql_sequence_capacity( - name.clone(), - properties.get("table_name").cloned(), - properties.get("column_type")?, - counter.value.integer()?.to_string(), - step.to_string(), - )?; - (sequence, ProviderIncident::AutoIncrementBoundary { column: name.clone() }) - } - _ => return None, - }; - let (remaining, span) = sequence.remaining()?; - (remaining == 0 && span > 0).then_some(incident) + match sequence.low_headroom()? { + LowSequenceHeadroom::FewSteps(steps) => Some(steps), + LowSequenceHeadroom::SmallFraction(_) => None, + } } #[cfg(test)] diff --git a/crates/culprit-core/src/telemetry/diagnostics/originals/provider/sequences/tests.rs b/crates/culprit-core/src/telemetry/diagnostics/originals/provider/sequences/tests.rs index 7ee98b70c..ad08a0ba7 100644 --- a/crates/culprit-core/src/telemetry/diagnostics/originals/provider/sequences/tests.rs +++ b/crates/culprit-core/src/telemetry/diagnostics/originals/provider/sequences/tests.rs @@ -1,14 +1,14 @@ use super::*; use std::collections::BTreeMap; -fn classify( +fn capture( engine: Engine, schema: &str, name: &str, value: &str, step: &str, cycle: Option<&str>, -) -> Option { +) -> (CollectionDescription, TelemetryRecord) { let (source, physical, object, identity) = match engine { Engine::Postgres => ( "postgres-sequences", @@ -86,26 +86,86 @@ fn classify( point.catalog.key().unwrap(), crate::ObservationBody::CatalogCounters(Box::new(point)), )); - DiagnosticOriginalCondition::from_record(&source, &row) + (source, row) +} + +fn assert_capacity(source: &CollectionDescription, row: &TelemetryRecord, expected: Option) { + let found = DiagnosticOriginalCondition::from_record(source, row); + let Some(steps) = expected else { + assert_eq!(found, None); + return; + }; + let Some(DiagnosticOriginalCondition::Provider { incident }) = found else { panic!("missing capacity incident") }; + let wire = serde_json::to_value(&incident).unwrap(); + let mut expected_wire = match source.target.engine() { + Engine::Postgres => serde_json::json!({"kind": "sequence-boundary", "sequence": "public.invoice_id"}), + Engine::Mysql => serde_json::json!({"kind": "auto-increment-boundary", "column": "app.invoice.id"}), + _ => unreachable!(), + }; + if steps > 0 { + expected_wire["remaining_steps"] = steps.into(); + } + assert_eq!(wire, expected_wire); + let reopened: ProviderIncident = serde_json::from_value(wire).unwrap(); + assert!(reopened.matches_point(source, row)); } #[test] -fn sequence_allocation_boundaries_preserve_direction_cycle_scope_and_exact_integer_precision() { +fn postgres_capacity_uses_the_effective_bound_and_direction_of_a_noncycling_sequence() { for (value, step, cycle, expected) in [ - ("99", "1", Some("false"), false), - ("100", "1", Some("false"), true), - ("-99", "-1", Some("false"), false), - ("-100", "-1", Some("f"), true), - ("100", "1", Some("true"), false), - ("100", "1", None, false), + ("79", "1", Some("false"), None), + ("80", "1", Some("false"), Some(20)), + ("99", "1", Some("false"), Some(1)), + ("100", "1", Some("false"), Some(0)), + ("-97", "-2", Some("false"), Some(1)), + ("-99", "-2", Some("f"), Some(0)), + ("-100", "-1", Some("f"), Some(0)), + ("100", "1", Some("true"), None), + ("100", "1", None, None), + ("99", "0", Some("false"), None), ] { - assert_eq!(classify(Engine::Postgres, "app", "public.invoice_id", value, step, cycle).is_some(), expected); + let (source, row) = capture(Engine::Postgres, "app", "public.invoice_id", value, step, cycle); + assert_capacity(&source, &row, expected); } - for (schema, value, expected) in [("app", u64::MAX, true), ("app", u64::MAX - 1, false), ("other", u64::MAX, false)] - { - assert_eq!( - classify(Engine::Mysql, schema, "app.invoice.id", &value.to_string(), "1", None).is_some(), - expected - ); +} + +#[test] +fn allocator_incidents_require_few_remaining_native_steps_and_the_selected_schema() { + for (schema, value, step, expected) in [ + ("app", u64::MAX, "1", Some(0)), + ("app", u64::MAX - 1, "1", Some(1)), + ("app", u64::MAX - 30_001, "3", Some(10_000)), + ("app", u64::MAX - 30_003, "3", None), + ("app", u64::MAX, "0", None), + ("other", u64::MAX, "1", None), + ] { + let (source, row) = capture(Engine::Mysql, schema, "app.invoice.id", &value.to_string(), step, None); + assert_capacity(&source, &row, expected); } } + +#[test] +fn a_reopened_warning_must_match_the_step_count_in_its_original_evidence() { + let (source, row) = capture(Engine::Postgres, "app", "public.invoice_id", "99", "1", Some("f")); + let Some(DiagnosticOriginalCondition::Provider { incident }) = + DiagnosticOriginalCondition::from_record(&source, &row) + else { + panic!("missing early warning") + }; + assert_eq!( + incident.title(), + "From the allocation high-water mark for public.invoice_id, only 1 step remains before the effective sequence limit." + ); + let (_, other_row) = capture(Engine::Postgres, "app", "public.invoice_id", "98", "1", Some("f")); + assert!(!incident.matches_point(&source, &other_row)); + let (source, row) = capture(Engine::Mysql, "app", "app.invoice.id", &(u64::MAX - 27).to_string(), "3", None); + let Some(DiagnosticOriginalCondition::Provider { incident }) = + DiagnosticOriginalCondition::from_record(&source, &row) + else { + panic!("missing early warning") + }; + assert_eq!( + incident.title(), + "At the captured increment, only 9 steps remain from the next AUTO_INCREMENT value for app.invoice.id to the column limit." + ); +} diff --git a/docs/collector.md b/docs/collector.md index 168dfd0e0..1de0588cc 100644 --- a/docs/collector.md +++ b/docs/collector.md @@ -902,6 +902,12 @@ and catalog horizons, comparable transaction distances and ties. Missing coverag positive holder observations; it withholds a qualified complete boundary. A previous statement or session label does not identify the code that opened the retaining transaction. +Scheduled `sequences` captures open a capacity incident when at most 10,000 native increments remain and the +allocator is in the final tenth of its effective range. PostgreSQL measures from a noncycling sequence’s allocation +high-water mark, which can include cached values. MySQL and MariaDB measure from the column’s reported next +`AUTO_INCREMENT` value using the captured global increment. The incident retains the original row and step count. +An allocation failure requires a separate native error. + SQL Server `operational` captures retain independent oldest-transaction and ADR/PVS observations. Native skipped-page counters distinguish readable-secondary retention, the oldest active transaction, long snapshot scans, online index rebuilds and the oldest aborted transaction where those columns are available. The separate diff --git a/locales/en.json b/locales/en.json index fff034030..64086dcaa 100644 --- a/locales/en.json +++ b/locales/en.json @@ -5009,6 +5009,7 @@ "incident.native.archive.next": "Check the archive command or library and the destination for the named file. Verify that the missing file reaches the archive and subsequent WAL files advance.", "incident.native.archive.verify": "Verify the named WAL file in the archive and confirm subsequent files archive successfully.", "incident.native.auto.boundary": "The next AUTO_INCREMENT value for {name} is at the column’s allocation boundary.", + "incident.native.auto.near_boundary": "At the captured increment, {n, plural, one {only {count} step remains} other {only {count} steps remain}} from the next AUTO_INCREMENT value for {name} to the column limit.", "incident.native.channel.applier": "Channel {channel} has a stopped applier. Its last SQL error was {code}.", "incident.native.channel.both": "Channel {channel} has stopped receiving and applying transactions. Its last I/O error was {receiver} and its last SQL error was {applier}.", "incident.native.channel.default": "default", @@ -5033,6 +5034,7 @@ "incident.native.group.verify": "Check that the affected member reports ONLINE in the same group.", "incident.native.job.verify": "Find a later successful run of the same job and confirm it produced the expected result.", "incident.native.sequence.boundary": "The allocation high-water mark for {name} reached the effective sequence boundary.", + "incident.native.sequence.near_boundary": "From the allocation high-water mark for {name}, {n, plural, one {only {count} step remains} other {only {count} steps remain}} before the effective sequence limit.", "incident.native.sequence.next": "Check the generator’s range and increment against the dependent column type. Widen the limiting range before new allocations fail.", "incident.native.sequence.verify": "Verify that the generator has room for additional increments and that inserts succeed with unique values.", "incident.native.slot.lost": "Replication slot {slot} lost the WAL its consumer needs.",