mattyb149 commented on a change in pull request #4147: NIFI-7260: Fix error
handling and re-evaluate Module Directory property on changed for scripted
controller services
URL: https://github.com/apache/nifi/pull/4147#discussion_r394473190
##########
File path:
nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/main/java/org/apache/nifi/record/script/AbstractScriptedRecordFactory.java
##########
@@ -42,9 +42,13 @@ public void setup() {
if (scriptNeedsReload.get() || recordFactory.get() == null) {
if
(ScriptingComponentHelper.isFile(scriptingComponentHelper.getScriptPath())) {
- reloadScriptFile(scriptingComponentHelper.getScriptPath());
+ if
(!reloadScriptFile(scriptingComponentHelper.getScriptPath())) {
Review comment:
I think we need the exception to indicate to the framework that the CS was
not enabled properly, even though the processor is still allowed to run and the
validation errors are already logged (hopefully only once now)
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services