<?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: Structured Streaming writeStream - Query is no longer active causes task to fail in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/structured-streaming-writestream-query-is-no-longer-active/m-p/111026#M43765</link>
    <description>&lt;P&gt;However it looks like that '&lt;SPAN&gt;Query &amp;lt;id&amp;gt; has not received any updates in 60 seconds' is not correlated with "Query &amp;lt;id&amp;gt; is no longer active"&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2025 10:34:40 GMT</pubDate>
    <dc:creator>p_romm</dc:creator>
    <dc:date>2025-02-24T10:34:40Z</dc:date>
    <item>
      <title>Structured Streaming writeStream - Query is no longer active causes task to fail</title>
      <link>https://community.databricks.com/t5/data-engineering/structured-streaming-writestream-query-is-no-longer-active/m-p/110580#M43610</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I execute readStream/writeStream in workflow task.&amp;nbsp;&lt;BR /&gt;Write stream uses&amp;nbsp;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;trigger&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;availableNow&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;) option. After writeStream I'm waiting query to finish with&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;query.awaitTermination(). However from time to time, pipeline ends with&amp;nbsp;&lt;BR /&gt;"Query &amp;lt;id&amp;gt; is no longer active" error which causes task in workflow to fail.&amp;nbsp;&lt;BR /&gt;I have also check option:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;.trigger(once=True)&amp;nbsp; and&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;query.&lt;/SPAN&gt;&lt;SPAN&gt;processAllAvailable&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;BR /&gt;but the behavior is the same.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does anybody knows why this error occurs? How to avoid it ?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Feb 2025 11:26:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/structured-streaming-writestream-query-is-no-longer-active/m-p/110580#M43610</guid>
      <dc:creator>p_romm</dc:creator>
      <dc:date>2025-02-19T11:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Structured Streaming writeStream - Query is no longer active causes task to fail</title>
      <link>https://community.databricks.com/t5/data-engineering/structured-streaming-writestream-query-is-no-longer-active/m-p/110601#M43617</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149882"&gt;@p_romm&lt;/a&gt;&amp;nbsp; - Are you using serverless compute?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 12:44:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/structured-streaming-writestream-query-is-no-longer-active/m-p/110601#M43617</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-19T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Structured Streaming writeStream - Query is no longer active causes task to fail</title>
      <link>https://community.databricks.com/t5/data-engineering/structured-streaming-writestream-query-is-no-longer-active/m-p/111011#M43762</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;yes, it is used on serveless, I didn't test it in general compute yet.&amp;nbsp;&lt;BR /&gt;This is long running task in foreachBatch function,&amp;nbsp; and in the messages I get also:&lt;BR /&gt;&lt;SPAN&gt;Query &amp;lt;id&amp;gt; has not received any updates in 60 seconds. Spark Session ID is &amp;lt;id&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 09:00:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/structured-streaming-writestream-query-is-no-longer-active/m-p/111011#M43762</guid>
      <dc:creator>p_romm</dc:creator>
      <dc:date>2025-02-24T09:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Structured Streaming writeStream - Query is no longer active causes task to fail</title>
      <link>https://community.databricks.com/t5/data-engineering/structured-streaming-writestream-query-is-no-longer-active/m-p/111026#M43765</link>
      <description>&lt;P&gt;However it looks like that '&lt;SPAN&gt;Query &amp;lt;id&amp;gt; has not received any updates in 60 seconds' is not correlated with "Query &amp;lt;id&amp;gt; is no longer active"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 10:34:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/structured-streaming-writestream-query-is-no-longer-active/m-p/111026#M43765</guid>
      <dc:creator>p_romm</dc:creator>
      <dc:date>2025-02-24T10:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Structured Streaming writeStream - Query is no longer active causes task to fail</title>
      <link>https://community.databricks.com/t5/data-engineering/structured-streaming-writestream-query-is-no-longer-active/m-p/116817#M45375</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;this bug was apparently fixed a few months ago, but we're still facing the same issue on our end.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 16:15:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/structured-streaming-writestream-query-is-no-longer-active/m-p/116817#M45375</guid>
      <dc:creator>cmathieu</dc:creator>
      <dc:date>2025-04-28T16:15:18Z</dc:date>
    </item>
  </channel>
</rss>

