SpinTheMic
Pro

Interview practice question

Streaming job's state growing until crash

Data Engineering · Spark · Experienced

A streaming deduplication job runs fine for days, then slows down and crashes with memory errors. What's happening?

What a strong answer covers

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

  • dropDuplicates keeps all seen keys in state forever without a watermark.
  • State grows until memory runs out.
  • Add a watermark so old keys expire.
  • Use dropDuplicatesWithinWatermark if available.
  • Use RocksDB state store for large state and monitor state metrics.
Practise this topic

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

See all topics