GitHub user ijokarumawak opened a pull request:
https://github.com/apache/nifi/pull/927
NIFI-2459: HTTP Site-to-Site can't update remote peer topology if the
"bootstrap url" node is down
This PR migrates existing code which handles the situation, from
EndpointConnectionPool to PeerSelector, so that both RAW and HTTP transport
protocol has the same capability.
Added a unit test to confirm this scenario.
Also did an IT test using running NiFi cluster:
Used a 3 node cluster. Setup S2S specifying node 2 as the bootstrap node,
then stop node 2. Confirm data is sent to only node 1 and 3. Remote peer status
can still be refreshed. Then add Node 2 back, Confirm data is sent to node 1, 2
and 3.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ijokarumawak/nifi nifi-2459
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/927.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #927
commit ca3a365d4ec649f7d4b5742c37fb6c250bb73540
Author: Koji Kawamura
Date: 2016-08-24T08:59:25Z
NIFI-2459: Site-to-Site bootstrap node failure
Refresh remote peer statuses even if the bootstrap node goes down.
Migrate existing code which handles the situation from
EndpointConnectionPool to PeerSelector, so that both RAW and HTTP
transport protocol has the same capability.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---