<?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 Auto Loader stream fails on RocksDB checkpoint after enabling managed file events in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/auto-loader-stream-fails-on-rocksdb-checkpoint-after-enabling/m-p/168336#M55895</link>
    <description>&lt;P&gt;Hello Community.&lt;/P&gt;&lt;P&gt;We recently enabled the following option on several existing Auto Loader streams:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"cloudFiles.useManagedFileEvents": "true"&lt;/LI-CODE&gt;&lt;P&gt;Most streams continued working, but one now fails while restoring its existing checkpoint, referencing a file similar to:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;checkpoint&amp;gt;/sources/0/rocksdb/7129.zip&lt;/LI-CODE&gt;&lt;P&gt;Removing &lt;STRONG&gt;cloudFiles.useManagedFileEvents&amp;nbsp;&lt;/STRONG&gt;and rerunning does not resolve the error, the stream still attempts to restore the same RocksDB archive.&lt;/P&gt;&lt;P&gt;Has anyone encountered this when enabling managed file events on an existing checkpoint? Is there a supported way to repair or migrate the checkpoint without resetting it and potentially reprocessing existing files?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2026 10:04:19 GMT</pubDate>
    <dc:creator>data_pulse</dc:creator>
    <dc:date>2026-09-11T10:04:19Z</dc:date>
    <item>
      <title>Auto Loader stream fails on RocksDB checkpoint after enabling managed file events</title>
      <link>https://community.databricks.com/t5/data-engineering/auto-loader-stream-fails-on-rocksdb-checkpoint-after-enabling/m-p/168336#M55895</link>
      <description>&lt;P&gt;Hello Community.&lt;/P&gt;&lt;P&gt;We recently enabled the following option on several existing Auto Loader streams:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"cloudFiles.useManagedFileEvents": "true"&lt;/LI-CODE&gt;&lt;P&gt;Most streams continued working, but one now fails while restoring its existing checkpoint, referencing a file similar to:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;checkpoint&amp;gt;/sources/0/rocksdb/7129.zip&lt;/LI-CODE&gt;&lt;P&gt;Removing &lt;STRONG&gt;cloudFiles.useManagedFileEvents&amp;nbsp;&lt;/STRONG&gt;and rerunning does not resolve the error, the stream still attempts to restore the same RocksDB archive.&lt;/P&gt;&lt;P&gt;Has anyone encountered this when enabling managed file events on an existing checkpoint? Is there a supported way to repair or migrate the checkpoint without resetting it and potentially reprocessing existing files?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2026 10:04:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/auto-loader-stream-fails-on-rocksdb-checkpoint-after-enabling/m-p/168336#M55895</guid>
      <dc:creator>data_pulse</dc:creator>
      <dc:date>2026-09-11T10:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Loader stream fails on RocksDB checkpoint after enabling managed file events</title>
      <link>https://community.databricks.com/t5/data-engineering/auto-loader-stream-fails-on-rocksdb-checkpoint-after-enabling/m-p/168372#M55911</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/250262"&gt;@data_pulse&lt;/a&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I had a quick look at this problem alongside the Databricks documentation and found a supported way to recover your stream without resetting your entire checkpoint!&lt;/P&gt;&lt;P&gt;This error usually happens when Auto Loader tries to initialize its state for Unity Catalog managed file events for the first time. If the stream is interrupted, crashes, or times out while doing the initial full directory listing, the RocksDB state archive captures a partial state and gets corrupted. Simply removing the useManagedFileEvents option afterward doesn't fix it because the checkpoint is already in a broken state.&lt;/P&gt;&lt;P&gt;Fortunately, there is a documented way to bypass an invalid read position and force the stream to reconcile its state:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Add .option("cloudFiles.listOnStart", "true") and .option("cloudFiles.validateOptions", "false") to your streaming query.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Restart the stream. Auto Loader will perform a full directory listing on start and explicitly bypass the invalid/corrupted continuation token.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;After the stream completes a successful micro-batch, stop the stream.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Remove both of those options from your PySpark code and restart the stream normally.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This method allows Auto Loader to fix its state without dropping the historical file ingestion history stored in your checkpoint.&lt;/P&gt;&lt;P&gt;For more details on how these options interact, I found these documentation pages super helpful:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Auto Loader File Notification Mode:&lt;/STRONG&gt; &lt;A class="" href="https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/file-notification-mode" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/file-notification-mode&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Manage External Locations (File Events):&lt;/STRONG&gt; &lt;A class="" href="https://docs.databricks.com/aws/en/connect/unity-catalog/cloud-storage/manage-external-locations#file-events" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/connect/unity-catalog/cloud-storage/manage-external-locations#file-events&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this helps get your stream unblocked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2026 14:13:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/auto-loader-stream-fails-on-rocksdb-checkpoint-after-enabling/m-p/168372#M55911</guid>
      <dc:creator>ShamenParis</dc:creator>
      <dc:date>2026-09-11T14:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Loader stream fails on RocksDB checkpoint after enabling managed file events</title>
      <link>https://community.databricks.com/t5/data-engineering/auto-loader-stream-fails-on-rocksdb-checkpoint-after-enabling/m-p/168378#M55913</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/231077"&gt;@ShamenParis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for looking into this. I have tried listOnStart/ validateOptions but unfortunately it didn't solve the issue. The error we have got (FAILED_READ_FILE.NO_HINT on the rocksdb zip) turned out to be different failure than continuation token issue that these options address, as mentioned in the &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/cloud-object-storage/auto-loader/faq" target="_self"&gt;reference&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Ended up going with resetting the checkpoint and processing only incremental files from a known recovery timestamp as a workaround, which got the stream unblocked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2026 15:06:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/auto-loader-stream-fails-on-rocksdb-checkpoint-after-enabling/m-p/168378#M55913</guid>
      <dc:creator>data_pulse</dc:creator>
      <dc:date>2026-09-11T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Loader stream fails on RocksDB checkpoint after enabling managed file events</title>
      <link>https://community.databricks.com/t5/data-engineering/auto-loader-stream-fails-on-rocksdb-checkpoint-after-enabling/m-p/168389#M55918</link>
      <description>&lt;P&gt;I am really glad to hear you got the stream unblocked.&lt;/P&gt;&lt;P&gt;Thank you for sharing the exact error code (FAILED_READ_FILE.NO_HINT). That makes perfect sense—if the RocksDB .zip archive itself is physically unreadable or corrupted at the storage layer, rather than just containing an invalid continuation token, the listOnStart option wouldn't be able to help because Spark cannot even parse the state store to begin with.&lt;/P&gt;&lt;P&gt;Resetting the checkpoint and explicitly processing only incremental files from a known recovery timestamp is absolutely the cleanest and safest workaround for a fundamentally unrecoverable state. It is a great architectural pattern to fall back on to ensure you don't duplicate your data.&lt;/P&gt;&lt;P&gt;Thanks for sharing your solution; closing the loop like this will definitely help the next person who runs into a NO_HINT error on their checkpoint files!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2026 16:40:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/auto-loader-stream-fails-on-rocksdb-checkpoint-after-enabling/m-p/168389#M55918</guid>
      <dc:creator>ShamenParis</dc:creator>
      <dc:date>2026-09-11T16:40:18Z</dc:date>
    </item>
  </channel>
</rss>

