<?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>question Re: How to avoid deadlocks in Nifi when put something in database? Error Transaction (Process ID 76) was deadlocked on lock resources with another process and has been chosen as the deadlock victim in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-avoid-deadlocks-in-Nifi-when-put-something-in/m-p/412691#M253626</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110759"&gt;@donaldo71&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks like SQL is getting the deadlock because of the many records in once.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try couple of this.&amp;nbsp;&lt;BR /&gt;First, enable the retry option on the&amp;nbsp;PutSql or PutdatabaseRacord processors.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vafs_0-1760819691830.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46384iEBEB53DA626209E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vafs_0-1760819691830.png" alt="vafs_0-1760819691830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If the retries helped previously, this could also help in your case.&lt;/P&gt;&lt;P&gt;Also, decrease the concurrency and batch sizes to try to decrease the SQL load.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, on the SQL side, if you can, use row versioning isolation to reduce locking:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALTER DATABASE DBNAME SET READ_COMMITTED_SNAPSHOT ON;&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 18 Oct 2025 20:37:00 GMT</pubDate>
    <dc:creator>vafs</dc:creator>
    <dc:date>2025-10-18T20:37:00Z</dc:date>
    <item>
      <title>How to avoid deadlocks in Nifi when put something in database? Error Transaction (Process ID 76) was deadlocked on lock resources with another process and has been chosen as the deadlock victim</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-avoid-deadlocks-in-Nifi-when-put-something-in/m-p/412689#M253625</link>
      <description>&lt;P&gt;Hi! I have flows on NIFi and&lt;SPAN class="Y2IQFc"&gt;&amp;nbsp;in many places, I have to save data to the database. I mainly use PutSql or PutdatabaseRacord processors. So far, everything was working fine, but today we wanted to test our data and issued 15 messages at once. Unfortunately, in several places, during data saving or updating, an error appeared - error.code 1205 error.message Transaction (Process ID 76) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. error.sql.state 40001 - after which some data was saved or updated correctly, others unfortunately were not. How can I resolve this situation, and how can I protect myself against something like this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 19:45:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-avoid-deadlocks-in-Nifi-when-put-something-in/m-p/412689#M253625</guid>
      <dc:creator>donaldo71</dc:creator>
      <dc:date>2025-10-17T19:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid deadlocks in Nifi when put something in database? Error Transaction (Process ID 76) was deadlocked on lock resources with another process and has been chosen as the deadlock victim</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-avoid-deadlocks-in-Nifi-when-put-something-in/m-p/412691#M253626</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110759"&gt;@donaldo71&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks like SQL is getting the deadlock because of the many records in once.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try couple of this.&amp;nbsp;&lt;BR /&gt;First, enable the retry option on the&amp;nbsp;PutSql or PutdatabaseRacord processors.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vafs_0-1760819691830.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46384iEBEB53DA626209E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vafs_0-1760819691830.png" alt="vafs_0-1760819691830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If the retries helped previously, this could also help in your case.&lt;/P&gt;&lt;P&gt;Also, decrease the concurrency and batch sizes to try to decrease the SQL load.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, on the SQL side, if you can, use row versioning isolation to reduce locking:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALTER DATABASE DBNAME SET READ_COMMITTED_SNAPSHOT ON;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 18 Oct 2025 20:37:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-avoid-deadlocks-in-Nifi-when-put-something-in/m-p/412691#M253626</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2025-10-18T20:37:00Z</dc:date>
    </item>
  </channel>
</rss>

