[ 
https://issues.apache.org/jira/browse/NIFI-13242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854303#comment-17854303
 ] 

ASF subversion and git services commented on NIFI-13242:
--------------------------------------------------------

Commit 3aa4ff9d5663c131ccf7d18bbed69b51cbd72707 in nifi's branch 
refs/heads/main from Ferenc Kis
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=3aa4ff9d56 ]

NIFI-13242 MiNiFi Sync Resource C2 command

Signed-off-by: Ferenc Erdei <[email protected]>
This closes #8898.


> [MiNiFi] Sync Resource command
> ------------------------------
>
>                 Key: NIFI-13242
>                 URL: https://issues.apache.org/jira/browse/NIFI-13242
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: MiNiFi
>            Reporter: Ferenc Kis
>            Assignee: Ferenc Kis
>            Priority: Major
>             Fix For: 2.0.0-M4
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> Handle Sync resource command. (Download files, and store version id/hash)
> * check if agent has enough disk space 
> * extension types should be downloaded to extension folder
> * other types are relative to the asset folder (that must be different than 
> the old asset push command folder)
> * the agent maintains a local repo, so it can be kept in sync with the C2 
> server
> Heartbeat operation:
> operation type: SYNC
> operand type: RESOURCE
> args:
> {code}
> "args": {
>   "globalHash": {
>     "digest": "xzy123",
>     "hashType": "SHA1"
>   },
>   "resourceList": [
>     {
>       "resourceId": "abc123",
>       "resourceName": "a.txt",
>       "resourceType": "ASSET",
>       "resourcePath": "valami/barmi",
>       "digest": "hij987",
>       "hashType": "SHA1",
>       "url": "/c2/resource/abc123"
>     },
>     {
>         "resourceId": "def123",
>         "resourceName": "b.nar",
>         "resourceType": "EXTENSION",
>         "resourcePath": null,
>         "digest": "mno666",
>         "hashType": "SHA1",
>         "url": "/c2/resource/def123"
>     }
>   ]
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to