<?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: DBCP connection pool issue in NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/DBCP-connection-pool-issue-in-NIFI/m-p/290806#M215116</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/19178"&gt;@saivenkatg55&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My first suggestion is that you always make sure you have configured the "validation query" property when using the DBCPConnectionPool controller service.&lt;BR /&gt;&lt;BR /&gt;When you enable the DBCPConnectionPool it does not immediately establish the configured number of connections for the pool.&amp;nbsp; Upon receiving the first request from a processor for a connection from the DBCPConnectionPool, the entire pool will be created (by default configuration pool would consist of 8 connection).&lt;BR /&gt;&lt;BR /&gt;Subsequent requests by processor to for a connection results in one of the previously established connections being handed off to the requesting processor.&amp;nbsp; If and only if the validation query is configured, the connection is first validated to make sure it is still good before being passed to requesting processor.&amp;nbsp; So often times we see this issue when validation query is not set and the connections are no longer any good.&amp;nbsp; Connections can go bad for many reasons (network issues, idle to long, etc...)&lt;BR /&gt;&lt;BR /&gt;You should keep your validation query very simple so it can execute very fast.&amp;nbsp; "select 1" is often used to validate a connection.&lt;BR /&gt;&lt;BR /&gt;Also make sure you are using the latest version of NiFi.&amp;nbsp; There have been numerous bug fixes around the processors and DBCPConnectionPool between Apache 1.0 and 1.11.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Matt&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 15:03:44 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2020-03-02T15:03:44Z</dc:date>
  </channel>
</rss>

