NIFI-5155: Add host address info to bulletins#2773
NIFI-5155: Add host address info to bulletins#2773mattyb149 wants to merge 2 commits intoapache:mainfrom
Conversation
zenfenan
left a comment
There was a problem hiding this comment.
Hi.. When I started looking into this sometime back, I came across this: https://stackoverflow.com/questions/2381316/java-inetaddress-getlocalhost-returns-127-0-0-1-how-to-get-real-ip
In some cases (mostly a Debian thing), there are high possibilities of getting 127.0.0.1 eventhough there is an actual IP associated to the machine(s).
|
@zenfenan Good point. The reporting tasks haven't had this information available before, is this a "no-harm-no-foul" thing, and if not, how should it be handled? |
|
I'm not entirely sure if this poses an immediate threat, but in the future when other extensions try to use the For the workaround, this feels like a good approach: https://stackoverflow.com/a/28346117 |
|
I'm not exactly sure why the Bulletin itself has a |
|
@mcgilman Are you saying regardless of the |
|
@zenfenan Correct. The cluster coordinator handles setting the node address for the bulletins that are returned through the REST API. However, those are not the same objects that are available in the |
|
@mattyb149 I think this makes sense but have a couple of thoughts on the PR:
|
|
@markap14 How would we get at the value in NiFiProperties? They're not readily available from the FlowController (nor is the FlowController interface itself IIRC). Perhaps we call a static method on BulletinFactory? Agreed about storing away getHostAddress(), that was a hasty copy-pasty :) |
56c1cfc to
13c441a
Compare
|
We're marking this PR as stale due to lack of updates in the past few months. If after another couple of weeks the stale label has not been removed this PR will be closed. This stale marker and eventual auto close does not indicate a judgement of the PR just lack of reviewer bandwidth and helps us keep the PR queue more manageable. If you would like this PR re-opened you can do so and a committer can remove the stale tag. Or you can open a new PR. Try to help review other PRs to increase PR review bandwidth which in turn helps yours. |
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.