<?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: Autoloader: How to identify the backlog in RocksDB in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/autoloader-how-to-identify-the-backlog-in-rocksdb/m-p/21059#M14297</link>
    <description>&lt;P&gt;For DBR 8.2 or later, the backlog details are captured in the Streaming metrics&lt;/P&gt;&lt;P&gt;Eg: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image (11)"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2477i903FD36E05EF96CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (11)" alt="image (11)" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 23:29:42 GMT</pubDate>
    <dc:creator>brickster_2018</dc:creator>
    <dc:date>2021-06-23T23:29:42Z</dc:date>
    <item>
      <title>Autoloader: How to identify the backlog in RocksDB</title>
      <link>https://community.databricks.com/t5/data-engineering/autoloader-how-to-identify-the-backlog-in-rocksdb/m-p/21057#M14295</link>
      <description>&lt;P&gt;With S3-SQS it was easier to identify the backlog ( the messages that are fetched from SQS and not consumed by the streaming job) &lt;/P&gt;&lt;P&gt;How to find the same with Auto-loader &lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 23:25:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/autoloader-how-to-identify-the-backlog-in-rocksdb/m-p/21057#M14295</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2021-06-23T23:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader: How to identify the backlog in RocksDB</title>
      <link>https://community.databricks.com/t5/data-engineering/autoloader-how-to-identify-the-backlog-in-rocksdb/m-p/21058#M14296</link>
      <description>&lt;P&gt;For DBR versions prior to 8.2 use the below code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import org.rocksdb.Options
import org.apache.hadoop.fs.Path
import com.databricks.sql.rocksdb.{CloudRocksDB, PutLogEntry}
val rocksdbPath: String = new Path("/tmp/hari/streaming/auto_loader2/sources/0/", "rocksdb").toString
val rocksDBOptions = new Options()
  rocksDBOptions
    .setCreateIfMissing(true)
    .setMaxTotalWalSize(Long.MaxValue)
    .setWalTtlSeconds(Long.MaxValue)
    .setWalSizeLimitMB(Long.MaxValue)
val rocksDB = CloudRocksDB.open(
    rocksdbPath,
    hadoopConf = spark.sessionState.newHadoopConf(),
    dbOptions = rocksDBOptions,
    opTypePrefix = "autoIngest")
println("Latest offset in RocksDB:" + rocksDB.latestDurableSequenceNumber) 
println("Number of files to be processed " + rocksDB.latestDurableSequenceNumber - latestSeqFromQueryProgression)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 23:27:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/autoloader-how-to-identify-the-backlog-in-rocksdb/m-p/21058#M14296</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2021-06-23T23:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader: How to identify the backlog in RocksDB</title>
      <link>https://community.databricks.com/t5/data-engineering/autoloader-how-to-identify-the-backlog-in-rocksdb/m-p/21059#M14297</link>
      <description>&lt;P&gt;For DBR 8.2 or later, the backlog details are captured in the Streaming metrics&lt;/P&gt;&lt;P&gt;Eg: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image (11)"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2477i903FD36E05EF96CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (11)" alt="image (11)" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 23:29:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/autoloader-how-to-identify-the-backlog-in-rocksdb/m-p/21059#M14297</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2021-06-23T23:29:42Z</dc:date>
    </item>
  </channel>
</rss>

