<?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 does stream.stop() generates &amp;quot;ERROR: Query termination received for []&amp;quot; automatically? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/does-stream-stop-generates-quot-error-query-termination-received/m-p/92029#M38329</link>
    <description>&lt;P&gt;Whenever code contains stream.stop() in STDERR (in cluster logs) I get an error like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR: Query termination received for [id=b7e14d07-f8ad-4ae6-99de-8a7cbba89d86, runId=5c01fd71-2d93-48ca-a53c-5f46fab726ff]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;No other message, even if I try to try-catch and get some error stack no success (always only this 1 line error). When I take a look on Log4j output, there is an info instead of error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;24/09/27 12:42:46 INFO DatabricksStreamingQueryListener: Query termination received for [id=b7e14d07-f8ad-4ae6-99de-8a7cbba89d86, runId=5c01fd71-2d93-48ca-a53c-5f46fab726ff]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I'm wondering:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;does stream.stop() generates "ERROR: Query termination received for []" automatically?&lt;/LI&gt;&lt;LI&gt;Is ERROR: Query termination received for [] dangerous, or it is just ans info stream was closed?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2024 13:31:15 GMT</pubDate>
    <dc:creator>xhudik</dc:creator>
    <dc:date>2024-09-27T13:31:15Z</dc:date>
    <item>
      <title>does stream.stop() generates "ERROR: Query termination received for []" automatically?</title>
      <link>https://community.databricks.com/t5/data-engineering/does-stream-stop-generates-quot-error-query-termination-received/m-p/92029#M38329</link>
      <description>&lt;P&gt;Whenever code contains stream.stop() in STDERR (in cluster logs) I get an error like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR: Query termination received for [id=b7e14d07-f8ad-4ae6-99de-8a7cbba89d86, runId=5c01fd71-2d93-48ca-a53c-5f46fab726ff]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;No other message, even if I try to try-catch and get some error stack no success (always only this 1 line error). When I take a look on Log4j output, there is an info instead of error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;24/09/27 12:42:46 INFO DatabricksStreamingQueryListener: Query termination received for [id=b7e14d07-f8ad-4ae6-99de-8a7cbba89d86, runId=5c01fd71-2d93-48ca-a53c-5f46fab726ff]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I'm wondering:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;does stream.stop() generates "ERROR: Query termination received for []" automatically?&lt;/LI&gt;&lt;LI&gt;Is ERROR: Query termination received for [] dangerous, or it is just ans info stream was closed?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 13:31:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/does-stream-stop-generates-quot-error-query-termination-received/m-p/92029#M38329</guid>
      <dc:creator>xhudik</dc:creator>
      <dc:date>2024-09-27T13:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: does stream.stop() generates "ERROR: Query termination received for []" automatically?</title>
      <link>https://community.databricks.com/t5/data-engineering/does-stream-stop-generates-quot-error-query-termination-received/m-p/98113#M39613</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/95350"&gt;@xhudik&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;does stream.stop() generates "ERROR: Query termination received for []" automatically?&lt;BR /&gt;Yes, this is generated when there is stream.stop() in stdderIs &lt;BR /&gt;&lt;BR /&gt;ERROR: Query termination received for [] dangerous, or it is just ans info stream was closed?&lt;BR /&gt;&lt;SPAN&gt;The "Query termination received" message that is not preceded by an Exception is not a concern, since this message is simply triggered by streamingContext.stop(), which stops the execution of streams after processing all incoming data. This is considered a graceful stop scenario and a behavior by design for logs.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 16:38:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/does-stream-stop-generates-quot-error-query-termination-received/m-p/98113#M39613</guid>
      <dc:creator>MuthuLakshmi</dc:creator>
      <dc:date>2024-11-07T16:38:59Z</dc:date>
    </item>
  </channel>
</rss>

