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

Method error_handler

src/storage/src/storage_state.rs:367–375  ·  view source on GitHub ↗

Return an error handler that triggers a suspend and restart of the corresponding storage dataflow.

(&self, context: &'static str, id: GlobalId)

Source from the content-addressed store, hash-verified

365 /// Return an error handler that triggers a suspend and restart of the corresponding storage
366 /// dataflow.
367 pub fn error_handler(&self, context: &'static str, id: GlobalId) -> ErrorHandler {
368 let tx = self.internal_cmd_tx.clone();
369 ErrorHandler::signal(move |e| {
370 tx.send(InternalStorageCommand::SuspendAndRestart {
371 id,
372 reason: format!("{context}: {e:#}"),
373 })
374 })
375 }
376}
377
378/// Extra context for a storage instance.

Callers 6

remap_operatorFunction · 0.80
render_sinkFunction · 0.80
render_source_streamFunction · 0.80
run.pyFile · 0.80
orchestratord.pyFile · 0.80
mzcompose.pyFile · 0.80

Calls 2

cloneMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected