[ 
https://issues.apache.org/jira/browse/NIFI-3377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16290530#comment-16290530
 ] 

ASF GitHub Bot commented on NIFI-3377:
--------------------------------------

GitHub user ijokarumawak opened a pull request:

    https://github.com/apache/nifi/pull/2340

    NIFI-3377: NiFi RPG errors when switching between transport protocols

    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:
    - [x] Is there a JIRA ticket associated with this PR? Is it referenced 
         in the commit message?
    
    - [x] 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.
    
    - [x] Has your PR been rebased against the latest commit within the target 
branch (typically master)?
    
    - [x] Is your initial contribution a single, squashed commit?
    
    ### For code changes:
    - [x] Have you ensured that the full suite of tests is executed via mvn 
-Pcontrib-check clean install at the root nifi folder?
    - [ ] Have you written or updated unit tests to verify your changes?
    - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)? 
    - [ ] If applicable, have you updated the LICENSE file, including the main 
LICENSE file under nifi-assembly?
    - [ ] If applicable, have you updated the NOTICE file, including the main 
NOTICE file found under nifi-assembly?
    - [ ] If adding new Properties, have you added .displayName in addition to 
.name (programmatic access) for each of the new properties?
    
    ### For documentation related changes:
    - [ ] Have you ensured that format looks appropriate for the output in 
which it is rendered?
    
    ### 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.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ijokarumawak/nifi nifi-3377

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/2340.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 #2340
    
----
commit 0cd8818b217b76f67fd1cbb05330926113fb5e20
Author: Koji Kawamura <[email protected]>
Date:   2017-12-14T08:23:25Z

    NIFI-3377: NiFi RPG errors when switching between transport protocols

----


> NiFi RPG errors when switching between site-to-site transport protocols
> -----------------------------------------------------------------------
>
>                 Key: NIFI-3377
>                 URL: https://issues.apache.org/jira/browse/NIFI-3377
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.1.0
>            Reporter: Matthew Clarke
>            Assignee: Koji Kawamura
>            Priority: Minor
>
> If i have a RPG configured to use the RAW transport protocol and then switch 
> it to use HTTTP transport protocol, it will throw the following error message 
> twice before finally correcting itself:
> 2017-01-19 22:10:32,363 ERROR [I/O dispatcher 841] 
> o.a.n.r.util.SiteToSiteRestApiClient Failed to create transaction for 
> http://<hostname>.openstacklocal:8055/nifi-api/data-transfer/input-ports/b76c293d-0159-1000-0000-00003f85f297/transactions
> org.apache.http.ConnectionClosedException: Connection closed unexpectedly
>       at 
> org.apache.http.nio.protocol.HttpAsyncRequestExecutor.closed(HttpAsyncRequestExecutor.java:140)
>  [httpcore-nio-4.4.5.jar:4.4.5]
>       at 
> org.apache.http.impl.nio.client.InternalIODispatch.onClosed(InternalIODispatch.java:71)
>  [httpasyncclient-4.1.2.jar:4.1.2]
>       at 
> org.apache.http.impl.nio.client.InternalIODispatch.onClosed(InternalIODispatch.java:39)
>  [httpasyncclient-4.1.2.jar:4.1.2]
>       at 
> org.apache.http.impl.nio.reactor.AbstractIODispatch.disconnected(AbstractIODispatch.java:100)
>  [httpcore-nio-4.4.5.jar:4.4.5]
>       at 
> org.apache.http.impl.nio.reactor.BaseIOReactor.sessionClosed(BaseIOReactor.java:279)
>  [httpcore-nio-4.4.5.jar:4.4.5]
>       at 
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processClosedSessions(AbstractIOReactor.java:440)
>  [httpcore-nio-4.4.5.jar:4.4.5]
>       at 
> org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:283)
>  [httpcore-nio-4.4.5.jar:4.4.5]
>       at 
> org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
>  [httpcore-nio-4.4.5.jar:4.4.5]
>       at 
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
>  [httpcore-nio-4.4.5.jar:4.4.5]
>       at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]
> Similarly the following ERROR message will be thrown many times when 
> switching from HTTP to the RAW transport protocol:
> 2017-01-19 22:13:15,916 ERROR [Timer-Driven Process Thread-10] 
> o.a.nifi.remote.StandardRemoteGroupPort 
> RemoteGroupPort[name=outport2,targets=http://<hostname>:9090/nifi/] failed to 
> communicate with http://<hostname>:9090/nifi/ due to 
> org.apache.nifi.remote.exception.HandshakeException: 
> org.apache.nifi.remote.exception.ProtocolException: Expected to receive 
> ResponseCode, but the stream did not have a ResponseCode
> With both these scenarios, the RPG will eventually correct itself and start 
> working again.  User may be hesitant to wait once they start seeing these 
> ERRORS and instead stop the RPG since the self correction does not occur 
> rapidly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to