[
https://issues.apache.org/jira/browse/NIFI-6758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16948883#comment-16948883
]
ASF subversion and git services commented on NIFI-6758:
-------------------------------------------------------
Commit a273ff10f98b77e108aebf34dfbe847f473132ae in nifi's branch
refs/heads/master from Joe Witt
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=a273ff1 ]
NIFI-6758 fixing checkstyle issues
> create bundle coordinate map in separate phase
> ----------------------------------------------
>
> Key: NIFI-6758
> URL: https://issues.apache.org/jira/browse/NIFI-6758
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: Endre Kovacs
> Assignee: Endre Kovacs
> Priority: Minor
> Fix For: 1.10.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> In NarUnpacker
> https://github.com/apache/nifi/blob/9a496fe9d2681fca06fb6f071d0fa39d71bc5268/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-nar-utils/src/main/java/org/apache/nifi/nar/NarUnpacker.java#L131
> a bundleCoordinate map is populated during a for loop which un-packs the nars
> found in extension work dir.
> *This is great.*
> However if we want to optimize nifi size, we could keep only the un-packed
> the nars, delete the original nar archive files, and save hundreds of MBs of
> diskspace.
> In this case, the bundle-coordinate map is not populated, as the nar files
> are no longer present, only their unpacked , directory version are present.
> Such empty bundle-coordinate map will result in an empty ExtensionMapping
> which is returned, and is supplied to downstream components, eg.:
> jettyserver puts it on context for web docs servlet
> https://github.com/apache/nifi/blob/9a496fe9d2681fca06fb6f071d0fa39d71bc5268/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/JettyServer.java#L1005
> and the nifi-web-docs DocumentationController uses it:
> https://github.com/apache/nifi/blob/9a496fe9d2681fca06fb6f071d0fa39d71bc5268/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/java/org/apache/nifi/web/docs/DocumentationController.java#L60
> In such case, the resulting effect is that when the user does a right click
> on a processor, and clicks view-usage
> None of the processors are showing in the help.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)