[ 
https://issues.apache.org/jira/browse/NIFI-13242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ferenc Erdei resolved NIFI-13242.
---------------------------------
    Resolution: Fixed

> [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