<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Spark Streaming: Checkpoint corrupted in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/spark-streaming-checkpoint-corrupted/m-p/3683#M9</link>
    <description>&lt;P&gt;Hi @Martin Riccardi​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We haven't heard from you since the last response from @Kaniz Fatma​ , and I was checking back to see if her suggestions helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else, If you have any solution, please share it with the community, as it can be helpful to others.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 12:47:42 GMT</pubDate>
    <dc:creator>Vartika</dc:creator>
    <dc:date>2023-06-09T12:47:42Z</dc:date>
    <item>
      <title>Spark Streaming: Checkpoint corrupted</title>
      <link>https://community.databricks.com/t5/administration-architecture/spark-streaming-checkpoint-corrupted/m-p/3681#M7</link>
      <description>&lt;P&gt;Hi Everyone!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today 4 streaming jobs started to fail out of nowhere due to: StreamingQueryException: [STREAM_FAILED] Query [id = ####, runId = ####] terminated with exception: dbfs:/mnt/path/my_table/sources/0/0 doesn't exist (latestId: 8, compactInterval: 10).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;These streamings have been on for about +1 year.&lt;/LI&gt;
&lt;LI&gt;The only change we did was in March we added one more column to the schema.&lt;/LI&gt;
&lt;LI&gt;These streamings point to S3 and load parquet data, the run once daily.&lt;/LI&gt;
&lt;LI&gt;To keep track of files loaded we have a checkpoint path defined for each table.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What we found:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;When I go to path sources/0 the file 0 does not exists.&lt;/LI&gt;
&lt;LI&gt;We find the file 711 that was created the 23 of May.&lt;/LI&gt;
&lt;LI&gt;For some reason the 24 of May the streaming failed to get the latest batchId state and restarted the batchId to 0, also it stopped to write files in the sources, offset, and commits folder of the checkpoint location.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;root cause:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I understand that the issue is that for some reason spark streamming lost the last state of the checkpoint + stopped logging the checkpoint.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone has experienced something like this? How do you manage to recover without processing all the files again?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 16:49:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/spark-streaming-checkpoint-corrupted/m-p/3681#M7</guid>
      <dc:creator>mriccardi</dc:creator>
      <dc:date>2025-03-20T16:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Streaming: Checkpoint corrupted</title>
      <link>https://community.databricks.com/t5/administration-architecture/spark-streaming-checkpoint-corrupted/m-p/3683#M9</link>
      <description>&lt;P&gt;Hi @Martin Riccardi​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We haven't heard from you since the last response from @Kaniz Fatma​ , and I was checking back to see if her suggestions helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else, If you have any solution, please share it with the community, as it can be helpful to others.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 12:47:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/spark-streaming-checkpoint-corrupted/m-p/3683#M9</guid>
      <dc:creator>Vartika</dc:creator>
      <dc:date>2023-06-09T12:47:42Z</dc:date>
    </item>
  </channel>
</rss>

