<?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: Non deterministic behavior from the cluster in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/non-deterministic-behavior-from-the-cluster/m-p/145479#M52506</link>
    <description>&lt;P&gt;It seems you are submitting a job to an all-purpose cluster. If so, this is an anti-pattern.&lt;/P&gt;
&lt;P&gt;The primary reasons:&lt;/P&gt;
&lt;P&gt;1. Jobs submitted to AP compute are charged AP rates, typically 2x to 3x job rates in terms of DBUs (for same cluster spec)&lt;/P&gt;
&lt;P&gt;2. No way to "prioritize" resources to your important job compared to (for example) a really expensive query a developer may submit to that same AP cluster before your job starts, which would reduce the amount of resources available to your job.&lt;/P&gt;
&lt;P&gt;So, assuming data volume and code are same, maybe the times it works is when "other" processes on the cluster (adhoc queries, other jobs) are not also demanding resources from the cluster.&lt;/P&gt;
&lt;P&gt;When you restart you are clearing out the memory, and assuming your job is the first one this time, it works well (and some other job/process may not).&lt;/P&gt;
&lt;P&gt;This is why it has always been the recommendation to use job clusters for jobs.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jan 2026 02:19:18 GMT</pubDate>
    <dc:creator>MoJaMa</dc:creator>
    <dc:date>2026-01-28T02:19:18Z</dc:date>
    <item>
      <title>Non deterministic behavior from the cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/non-deterministic-behavior-from-the-cluster/m-p/145417#M52498</link>
      <description>&lt;P&gt;I asked this&amp;nbsp;&lt;A href="https://community.databricks.com/t5/data-engineering/cluster-crashes-occasionally-but-not-all-of-the-time/td-p/143900" target="_self"&gt;question&lt;/A&gt;&amp;nbsp;a while ago where I explain the cluster that my team uses on databricks. To save you some time, we use an all-purpose&amp;nbsp;Standard D2ads v6 with 8 gigs of ram and 2 cores cluster. We are facing an issue with the memory, which is pinpointed BUT the behavior of the cluster is non deterministic. Every day I receive a similar batch of data and I use a databricks job to ingest this data into a &lt;EM&gt;&lt;STRONG&gt;hive_metastore&lt;/STRONG&gt;&lt;/EM&gt; tables. However, some days it works fine and some days the job crashes with an OOM error during the first step. Sometimes restarting the cluster and re-running the cluster works like a charm and it ends so fast.&lt;/P&gt;&lt;P&gt;My question, and the thing I'm worried about, is why does this happen? Every day, same amount of data but different cluster behavior (as mentioned, some days it works, some days it doesn't but works well upon restart. Some days the cluster needs a couple of restarts until it starts working good). The thing why I ask is because I have to explain this somehow to my client and the client isn't eager to spend more money for a more powerful cluster because, well we can just restart it at the days when the job fails and keep it that way&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 15:49:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/non-deterministic-behavior-from-the-cluster/m-p/145417#M52498</guid>
      <dc:creator>NotCuriosAtAll</dc:creator>
      <dc:date>2026-01-27T15:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Non deterministic behavior from the cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/non-deterministic-behavior-from-the-cluster/m-p/145479#M52506</link>
      <description>&lt;P&gt;It seems you are submitting a job to an all-purpose cluster. If so, this is an anti-pattern.&lt;/P&gt;
&lt;P&gt;The primary reasons:&lt;/P&gt;
&lt;P&gt;1. Jobs submitted to AP compute are charged AP rates, typically 2x to 3x job rates in terms of DBUs (for same cluster spec)&lt;/P&gt;
&lt;P&gt;2. No way to "prioritize" resources to your important job compared to (for example) a really expensive query a developer may submit to that same AP cluster before your job starts, which would reduce the amount of resources available to your job.&lt;/P&gt;
&lt;P&gt;So, assuming data volume and code are same, maybe the times it works is when "other" processes on the cluster (adhoc queries, other jobs) are not also demanding resources from the cluster.&lt;/P&gt;
&lt;P&gt;When you restart you are clearing out the memory, and assuming your job is the first one this time, it works well (and some other job/process may not).&lt;/P&gt;
&lt;P&gt;This is why it has always been the recommendation to use job clusters for jobs.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 02:19:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/non-deterministic-behavior-from-the-cluster/m-p/145479#M52506</guid>
      <dc:creator>MoJaMa</dc:creator>
      <dc:date>2026-01-28T02:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Non deterministic behavior from the cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/non-deterministic-behavior-from-the-cluster/m-p/145488#M52510</link>
      <description>&lt;P&gt;How to explain it to the client -&amp;nbsp;&lt;BR /&gt;The job is operating at the resource ceiling of a very small driver. Tiny, normal day‑to‑day differences (file layout, plan choice, GC timing) sometimes push it over the limit, which is why restarts occasionally “fix” it—the restart clears memory and changes runtime conditions.This is assuming no other workload/query is running on it .&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/425"&gt;@MoJaMa&lt;/a&gt;&amp;nbsp;suggested move to a job cluster . Upgrade to latest DBR if possible .&amp;nbsp; Periodically optimize your target table to compact files assuming its in delta format .&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 05:43:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/non-deterministic-behavior-from-the-cluster/m-p/145488#M52510</guid>
      <dc:creator>pradeep_singh</dc:creator>
      <dc:date>2026-01-28T05:43:38Z</dc:date>
    </item>
  </channel>
</rss>

