[
https://issues.apache.org/jira/browse/NIFI-8963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17391560#comment-17391560
]
Matt Gilman commented on NIFI-8963:
-----------------------------------
[~Wogno] You are correct. The clientId and revision help ensure that when any
client submits a request they are acknowledging the latest configuration
helping to prevent a scenario where client1 could override client2
configuration because their request was sent after the other but before they
refreshed locally. In order to use it you either need to supply the current
revision OR be the client that last made a change. The latter case helps
clients that want to submit many requests without necessarily waiting for each
to process and return. The solution isn't foolproof obviously as clients could
share the same clientId but then they would not gain the protection the API was
designed to provide.
> Request NIFI API - wrong client_id
> ----------------------------------
>
> Key: NIFI-8963
> URL: https://issues.apache.org/jira/browse/NIFI-8963
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework, Core UI
> Affects Versions: 1.11.4
> Reporter: Mayki
> Priority: Minor
>
> Hello,
> As I understand *client_id and version* is available to avoid same client api
> changed the state of component with the same version.
>
> But sometime when I call NIFI API about the status of component, the
> "client_id" key is not available, so I can't change the status of compoent,
> even if I used *uuidgen* to create a new client_id before request a change
> status.
> What is the better way to be sure that NIFI API accept request with the
> correct *client_id and revision?*
> Because I got this error :
> {code:java}
> 2021-07-30 17:16:24,669 :: ERROR :: Run time error: Unexpected result 400 for
> endpoint /controller-services/0175103a-db30-1020-2175-91439d12f0a8/run-status
> text result [1, 2fe4e253-1ace-4be1-86be-ca9dec7abfda,
> 0175103a-db30-1020-2175-91439d12f0a8] is not the most up-to-date revision.
> This component appears to have been modified
> {code}
> Thanks for you help
--
This message was sent by Atlassian Jira
(v8.3.4#803005)