NIFI-1856 ExecuteStreamCommand Needs to Consume Standard Error#1355
NIFI-1856 ExecuteStreamCommand Needs to Consume Standard Error#1355rkarthik29 wants to merge 0 commit intoapache:masterfrom rkarthik29:master
Conversation
|
added a property to executeSTreamCommand "Redirect Error Output". [log,output stream, error stream]. log is the default. Added a process.destroyforcibly of the processor unscheduled event. Checked execute process, it was already capturing the error stream, so no change needed. |
jackowaya
left a comment
There was a problem hiding this comment.
Happy to see someone looking at this!
The logic looks mostly sound here. There are some stylistic changes that may get you flagged by contribCheck. Can you run mvn -Pcontrib-check clean install to verify that things are good there?
| */ | ||
| package org.apache.nifi.processors.standard; | ||
|
|
||
| import java.io.BufferedReader; |
There was a problem hiding this comment.
I'm not sure if nifi has an import order rule, but generally I try to avoid commits that move a lot of imports around like this.
| + "\n1) log - outputs to the nifi logger" | ||
| + "\n2) output stream - redirects to the output stream relation" | ||
| + "\n3) error stream - redirects to the error stream relation") | ||
| .allowableValues("log", "output stream","error stream") |
There was a problem hiding this comment.
It would be better to hold these strings in static final variables so they can be reused later without fear of mistyping.
Also spacing looks off here. You should run autoformat again.
|
I did a contrib check and there were no style errors. I agree using final variables would be nicer , will do that. |
|
Many of the commits are merge commits, when this PR is merged it can make the commit log fairly messy. Do you mind rebasing your own branch against the latest "upstream" master branch. You may find it helpful to create a branch specifically for this PR, then reset your own master branch to upstream, then you can rebase this branch against master without worrying whether to fetch or pull from upstream in the future. Not a requirement, just a suggestion to help keep things a bit cleaner :) |
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.