MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / process_upsert_state_error

Function process_upsert_state_error

src/storage/src/upsert.rs:1281–1294  ·  view source on GitHub ↗

Emit the given error, and stall till the dataflow is restarted.

(
    context: String,
    e: anyhow::Error,
    health_output: &AsyncOutputHandle<
        T,
        CapacityContainerBuilder<Vec<(Option<GlobalId>, HealthStatusUpdate)>>,
    >,
    health_cap: &Ca

Source from the content-addressed store, hash-verified

1279
1280/// Emit the given error, and stall till the dataflow is restarted.
1281async fn process_upsert_state_error<T: Timestamp>(
1282 context: String,
1283 e: anyhow::Error,
1284 health_output: &AsyncOutputHandle<
1285 T,
1286 CapacityContainerBuilder<Vec<(Option<GlobalId>, HealthStatusUpdate)>>,
1287 >,
1288 health_cap: &Capability<T>,
1289) {
1290 let update = HealthStatusUpdate::halting(e.context(context).to_string_with_causes(), None);
1291 health_output.give(health_cap, (None, update));
1292 std::future::pending::<()>().await;
1293 unreachable!("pending future never returns");
1294}

Callers

nothing calls this directly

Calls 3

to_string_with_causesMethod · 0.80
contextMethod · 0.45
giveMethod · 0.45

Tested by

no test coverage detected