mattyb149 commented on a change in pull request #3898: NIFI-6886 - Bugfix 
site-to-site-reporting-task
URL: https://github.com/apache/nifi/pull/3898#discussion_r363410701
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-site-to-site-reporting-bundle/nifi-site-to-site-reporting-task/src/main/java/org/apache/nifi/reporting/AbstractSiteToSiteReportingTask.java
 ##########
 @@ -118,9 +116,10 @@
         return properties;
     }
 
-    @OnScheduled
-    public void setup(final ConfigurationContext context) throws IOException {
-        siteToSiteClient = SiteToSiteUtils.getClient(context, getLogger());
+    public void setup(final ReportingContext reportContext) throws IOException 
{
+        if (siteToSiteClient != null) {
 
 Review comment:
   This means when the client is closed in `shutdown()`, `siteToSiteClient` 
should be reset to `null`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to