dataengref errors

Home / Flink / Checkpoints and state

Flink: JobException: Recovery is suppressed by NoRestartBackoffTimeStrategy

org.apache.flink.runtime.JobExceptionRecovery is suppressed by NoRestartBackoffTimeStrategy

A task failed and the job was not restarted because the restart strategy does not allow it. Without checkpointing, the default restart strategy is "disable", so the first failure ends the job. The cause is the exception attached to this one.

Causes · Fixes · Source

Common causes

  1. Checkpointing is not enabled, so no restart strategy applies by default.How to confirm: The job configuration has no execution.checkpointing.interval and no restart-strategy.type.
  2. A restart strategy is set but its attempts are used up (for example fixed-delay with a small attempts value).How to confirm: The message names FixedDelayRestartBackoffTimeStrategy or ExponentialDelayRestartBackoffTimeStrategy instead.

How to fix it

Fix the underlying failure shown in the "Caused by" section first.

Enable checkpointing (which turns on exponential-delay restarts by default) or set a restart strategy explicitly.

SettingDefaultNote
execution.checkpointing.intervalnone
restart-strategy.typenonedisable without checkpointing, exponential-delay with it

Where the message comes from

Message template in the source: Recovery is suppressed by %s

References

Related errors

Last checked: