You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/06/03 23:09:00 UTC
[jira] [Commented] (NIFI-10059) Controller service could incorrectly be removed from cache
[ https://issues.apache.org/jira/browse/NIFI-10059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17547511#comment-17547511 ]
ASF subversion and git services commented on NIFI-10059:
--------------------------------------------------------
Commit 98ec2563e9afdee83badd250d37f4a96d7e068c1 in nifi's branch refs/heads/dependabot/maven/nifi-nar-bundles/nifi-standard-services/nifi-hbase_1_1_2-client-service-bundle/org.apache.hadoop-hadoop-common-3.2.3 from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=98ec2563e9 ]
NIFI-10059 Remove incorrect removal of controller service from cache (#6082)
> Controller service could incorrectly be removed from cache
> -----------------------------------------------------------
>
> Key: NIFI-10059
> URL: https://issues.apache.org/jira/browse/NIFI-10059
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.16.2
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Minor
> Fix For: 1.17.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The remove method in StandardControllerServiceProvider has two calls to remove the service from the cache, and one of them happens before the service is actually removed:
> [https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/service/StandardControllerServiceProvider.java#L542]
> If the remove fails after this, the service is already removed from the cache. Later if someone asks for this service by id from the provider, it will return null because it is not in the cache anymore.
> A normal REST call shouldn't reach this case because it would call verifyDelete before getting here, and the delete shouldn't fail if it passed verify, but other backend code could potentially take a different path.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)