[jira] [Commented] (NIFI-5588) Unable to set indefinite max wait time on DBCPConnectionPool
[ https://issues.apache.org/jira/browse/NIFI-5588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16627368#comment-16627368 ] ASF GitHub Bot commented on NIFI-5588: -- Github user colindean commented on the issue: https://github.com/apache/nifi/pull/3022 :tada: > Unable to set indefinite max wait time on DBCPConnectionPool > > > Key: NIFI-5588 > URL: https://issues.apache.org/jira/browse/NIFI-5588 > Project: Apache NiFi > Issue Type: Bug > Components: Extensions >Affects Versions: 1.7.1 > Environment: macOS, Java 8 >Reporter: Colin Dean >Assignee: Pierre Villard >Priority: Major > Fix For: 1.8.0 > > > The DBCPConnectionPool controller service accepts a "Max Wait Time" that > configures > bq. The maximum amount of time that the pool will wait (when there are no > available connections) for a connection to be returned before failing, or -1 > to wait indefinitely. > This value must validate as a time period. *There is no valid way to set > {{-1}}* with the current validator. > The validator [in > use|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-nar-bundles/nifi-standard-services/nifi-dbcp-service-bundle/nifi-dbcp-service/src/main/java/org/apache/nifi/dbcp/DBCPConnectionPool.java#L110] > is {{StandardValidators.TIME_PERIOD_VALIDATOR}}. The > [TIME_PERIOD_VALIDATOR|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-commons/nifi-utils/src/main/java/org/apache/nifi/processor/util/StandardValidators.java#L443] > uses [a regex built in > FormatUtils|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-commons/nifi-utils/src/main/java/org/apache/nifi/util/FormatUtils.java#L44] > that must have a time unit: > {code:java} > public static final String TIME_DURATION_REGEX = "(\\d+)\\s*(" + > VALID_TIME_UNITS + ")"; > {code} > The regex does not allow for an value such as {{-1}} or {{-1 secs}}, etc. > The obvious workaround is to set that _very_ high. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (NIFI-5588) Unable to set indefinite max wait time on DBCPConnectionPool
[ https://issues.apache.org/jira/browse/NIFI-5588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16626872#comment-16626872 ] ASF GitHub Bot commented on NIFI-5588: -- Github user asfgit closed the pull request at: https://github.com/apache/nifi/pull/3022 > Unable to set indefinite max wait time on DBCPConnectionPool > > > Key: NIFI-5588 > URL: https://issues.apache.org/jira/browse/NIFI-5588 > Project: Apache NiFi > Issue Type: Bug > Components: Extensions >Affects Versions: 1.7.1 > Environment: macOS, Java 8 >Reporter: Colin Dean >Assignee: Pierre Villard >Priority: Major > > The DBCPConnectionPool controller service accepts a "Max Wait Time" that > configures > bq. The maximum amount of time that the pool will wait (when there are no > available connections) for a connection to be returned before failing, or -1 > to wait indefinitely. > This value must validate as a time period. *There is no valid way to set > {{-1}}* with the current validator. > The validator [in > use|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-nar-bundles/nifi-standard-services/nifi-dbcp-service-bundle/nifi-dbcp-service/src/main/java/org/apache/nifi/dbcp/DBCPConnectionPool.java#L110] > is {{StandardValidators.TIME_PERIOD_VALIDATOR}}. The > [TIME_PERIOD_VALIDATOR|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-commons/nifi-utils/src/main/java/org/apache/nifi/processor/util/StandardValidators.java#L443] > uses [a regex built in > FormatUtils|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-commons/nifi-utils/src/main/java/org/apache/nifi/util/FormatUtils.java#L44] > that must have a time unit: > {code:java} > public static final String TIME_DURATION_REGEX = "(\\d+)\\s*(" + > VALID_TIME_UNITS + ")"; > {code} > The regex does not allow for an value such as {{-1}} or {{-1 secs}}, etc. > The obvious workaround is to set that _very_ high. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (NIFI-5588) Unable to set indefinite max wait time on DBCPConnectionPool
[ https://issues.apache.org/jira/browse/NIFI-5588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16626871#comment-16626871 ] ASF subversion and git services commented on NIFI-5588: --- Commit c4d3b5e94f80b3973e18a49007a5e51728c62d74 in nifi's branch refs/heads/master from [~pvillard] [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=c4d3b5e ] NIFI-5588 - Fix max wait time in DBCP Connection Pool This closes #3022 Signed-off-by: zenfenan > Unable to set indefinite max wait time on DBCPConnectionPool > > > Key: NIFI-5588 > URL: https://issues.apache.org/jira/browse/NIFI-5588 > Project: Apache NiFi > Issue Type: Bug > Components: Extensions >Affects Versions: 1.7.1 > Environment: macOS, Java 8 >Reporter: Colin Dean >Assignee: Pierre Villard >Priority: Major > > The DBCPConnectionPool controller service accepts a "Max Wait Time" that > configures > bq. The maximum amount of time that the pool will wait (when there are no > available connections) for a connection to be returned before failing, or -1 > to wait indefinitely. > This value must validate as a time period. *There is no valid way to set > {{-1}}* with the current validator. > The validator [in > use|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-nar-bundles/nifi-standard-services/nifi-dbcp-service-bundle/nifi-dbcp-service/src/main/java/org/apache/nifi/dbcp/DBCPConnectionPool.java#L110] > is {{StandardValidators.TIME_PERIOD_VALIDATOR}}. The > [TIME_PERIOD_VALIDATOR|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-commons/nifi-utils/src/main/java/org/apache/nifi/processor/util/StandardValidators.java#L443] > uses [a regex built in > FormatUtils|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-commons/nifi-utils/src/main/java/org/apache/nifi/util/FormatUtils.java#L44] > that must have a time unit: > {code:java} > public static final String TIME_DURATION_REGEX = "(\\d+)\\s*(" + > VALID_TIME_UNITS + ")"; > {code} > The regex does not allow for an value such as {{-1}} or {{-1 secs}}, etc. > The obvious workaround is to set that _very_ high. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (NIFI-5588) Unable to set indefinite max wait time on DBCPConnectionPool
[ https://issues.apache.org/jira/browse/NIFI-5588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16625509#comment-16625509 ] ASF GitHub Bot commented on NIFI-5588: -- GitHub user pvillard31 opened a pull request: https://github.com/apache/nifi/pull/3022 NIFI-5588 - Fix max wait time in DBCP Connection Pool Thank you for submitting a contribution to Apache NiFi. In order to streamline the review of the contribution we ask you to ensure the following steps have been taken: ### For all changes: - [ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message? - [ ] Does your PR title start with NIFI- where is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character. - [ ] Has your PR been rebased against the latest commit within the target branch (typically master)? - [ ] Is your initial contribution a single, squashed commit? ### For code changes: - [ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder? - [ ] Have you written or updated unit tests to verify your changes? - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? - [ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly? - [ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly? - [ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties? ### For documentation related changes: - [ ] Have you ensured that format looks appropriate for the output in which it is rendered? ### Note: Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible. You can merge this pull request into a Git repository by running: $ git pull https://github.com/pvillard31/nifi NIFI-5588 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/nifi/pull/3022.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3022 commit b8978480c64a6e4d6242caba51a562defd290fd7 Author: Pierre Villard Date: 2018-09-23T20:00:36Z NIFI-5588 - Fix max wait time in DBCP Connection Pool > Unable to set indefinite max wait time on DBCPConnectionPool > > > Key: NIFI-5588 > URL: https://issues.apache.org/jira/browse/NIFI-5588 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework >Affects Versions: 1.7.1 > Environment: macOS, Java 8 >Reporter: Colin Dean >Assignee: Pierre Villard >Priority: Major > > The DBCPConnectionPool controller service accepts a "Max Wait Time" that > configures > bq. The maximum amount of time that the pool will wait (when there are no > available connections) for a connection to be returned before failing, or -1 > to wait indefinitely. > This value must validate as a time period. *There is no valid way to set > {{-1}}* with the current validator. > The validator [in > use|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-nar-bundles/nifi-standard-services/nifi-dbcp-service-bundle/nifi-dbcp-service/src/main/java/org/apache/nifi/dbcp/DBCPConnectionPool.java#L110] > is {{StandardValidators.TIME_PERIOD_VALIDATOR}}. The > [TIME_PERIOD_VALIDATOR|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-commons/nifi-utils/src/main/java/org/apache/nifi/processor/util/StandardValidators.java#L443] > uses [a regex built in > FormatUtils|https://github.com/apache/nifi/blob/0274bd4ff3f4199838ff1307c9c01d98fcc9150b/nifi-commons/nifi-utils/src/main/java/org/apache/nifi/util/FormatUtils.java#L44] > that must have a time unit: > {code:java} > public static final String TIME_DURATION_REGEX = "(\\d+)\\s*(" + > VALID_TIME_UNITS + ")"; > {code} > The regex does not allow for an value such as {{-1}} or {{-1 secs}}, etc. > The obvious workaround is to set that _very_ high. -- This message was sent by Atlassian JIRA (v7.6.3#76005)