MCPcopy Create free account
hub / github.com/actiontech/dtle / onError

Method onError

driver/mysql/extractor.go:1547–1559  ·  view source on GitHub ↗
(state int, err error)

Source from the content-addressed store, hash-verified

1545}
1546
1547func (e *Extractor) onError(state int, err error) {
1548 e.logger.Error("onError", "err", err, "hasShutdown", e.shutdown)
1549 if e.shutdown {
1550 return
1551 }
1552 common.WriteWaitCh(e.waitCh, &drivers.ExitResult{
1553 ExitCode: state,
1554 Signal: 0,
1555 OOMKilled: false,
1556 Err: err,
1557 })
1558 _ = e.Shutdown()
1559}
1560// Shutdown is used to tear down the extractor
1561func (e *Extractor) Shutdown() error {
1562 e.logger.Debug("extractor shutdown")

Callers 6

RunMethod · 0.95
initNatsPubClientMethod · 0.95
initiateStreamingMethod · 0.95
StreamEventsMethod · 0.95
sendSysVarAndSqlModeMethod · 0.95
StatsMethod · 0.95

Calls 2

ShutdownMethod · 0.95
WriteWaitChFunction · 0.92

Tested by

no test coverage detected