nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marka...@apache.org
Subject nifi git commit: NIFI-4351 - Fix for SiteToSiteProvenanceReportingTask when removing event type or component ID filters This closes #2127.
Date Fri, 08 Sep 2017 18:14:48 GMT
Repository: nifi
Updated Branches:
  refs/heads/master 9ebf2cfaf -> c9789adf2


NIFI-4351 - Fix for SiteToSiteProvenanceReportingTask when removing event type or component
ID filters
This closes #2127.


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/c9789adf
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/c9789adf
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/c9789adf

Branch: refs/heads/master
Commit: c9789adf21452d1ea3829b7a85b039ab3ece6a77
Parents: 9ebf2cf
Author: Pierre Villard <pierre.villard.fr@gmail.com>
Authored: Tue Sep 5 23:31:54 2017 +0200
Committer: Mark Payne <markap14@hotmail.com>
Committed: Fri Sep 8 14:14:42 2017 -0400

----------------------------------------------------------------------
 .../apache/nifi/reporting/SiteToSiteProvenanceReportingTask.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/c9789adf/nifi-nar-bundles/nifi-site-to-site-reporting-bundle/nifi-site-to-site-reporting-task/src/main/java/org/apache/nifi/reporting/SiteToSiteProvenanceReportingTask.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-site-to-site-reporting-bundle/nifi-site-to-site-reporting-task/src/main/java/org/apache/nifi/reporting/SiteToSiteProvenanceReportingTask.java
b/nifi-nar-bundles/nifi-site-to-site-reporting-bundle/nifi-site-to-site-reporting-task/src/main/java/org/apache/nifi/reporting/SiteToSiteProvenanceReportingTask.java
index 96777de..e998deb 100644
--- a/nifi-nar-bundles/nifi-site-to-site-reporting-bundle/nifi-site-to-site-reporting-task/src/main/java/org/apache/nifi/reporting/SiteToSiteProvenanceReportingTask.java
+++ b/nifi-nar-bundles/nifi-site-to-site-reporting-bundle/nifi-site-to-site-reporting-task/src/main/java/org/apache/nifi/reporting/SiteToSiteProvenanceReportingTask.java
@@ -146,12 +146,16 @@ public class SiteToSiteProvenanceReportingTask extends AbstractSiteToSiteReporti
                     getLogger().warn(type + " is not a correct event type, removed from the
filtering.");
                 }
             }
+        } else {
+            eventTypes.clear();
         }
 
         // initialize component ID filtering
         final String[] componentIdList = StringUtils.stripAll(StringUtils.split(context.getProperty(FILTER_COMPONENT_ID).getValue(),
','));
         if(componentIdList != null) {
             componentIds.addAll(Arrays.asList(componentIdList));
+        } else {
+            componentIds.clear();
         }
 
         // set a boolean whether filtering will be applied or not


Mime
View raw message