SpinTheMic
Pro

Interview practice question

Spark streaming job restarted from the wrong place

Data Engineering · Kafka Streaming · Intermediate

After a code change, a Spark Structured Streaming job reprocessed all data from the beginning. Why, and how do you prevent it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Checkpoint location changed or was deleted.
  • Checkpoint stores offsets and state.
  • Some query changes are incompatible with existing checkpoints.
  • Keep checkpoint paths stable and backed up.
  • For deliberate changes, plan starting offsets explicitly.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics