You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by ijokarumawak <gi...@git.apache.org> on 2016/07/25 05:42:46 UTC

[GitHub] nifi pull request #714: NIFI-2259: HTTP Site-to-Site can't handle DEST_FULL

GitHub user ijokarumawak opened a pull request:

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

    NIFI-2259: HTTP Site-to-Site can't handle DEST_FULL

    Hello, I found a bug related HTTP Site-to-Site push data transport, when there's a lots of items queued up at the remote NiFi instance.
    
    HTTP Site-to-Site can't handle TRANSACTION_FINISHED_BUT_DESTINATION_FULL
    scenario as expected.
    
    That happens if the remote NiFi's input port destination relationship
    becomes full during Site-to-Site client sends data. The data which has
    already sent to the remote NiFi has to be committed successfully.
    However, the remote NiFi returns 503 as a response of commit HTTP
    request. Because it does check port availability.
    
    The port availability check shouldn't be called at commit request, since
    the session at source NiFi has already been committed. The remote NiFi
    should commit its session as well, and return
    TRANSACTION_FINISHED_BUT_DESTINATION_FULL response.
    
    This fix makes a remote NiFi to keep the handshaken properties when it holds
    transaction to be committed. Then if a transaction already has
    handshaken properties, then use it, instead of doing a handshake process
    again.
    
    Please review the change, thank you!

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

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

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

    https://github.com/apache/nifi/pull/714.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 #714
    
----
commit 79521d8cd01c0675bd8bd4d6a9f9382e11ca9d6b
Author: Koji Kawamura <ij...@apache.org>
Date:   2016-07-25T03:14:12Z

    NIFI-2259: HTTP Site-to-Site can't handle DEST_FULL
    
    HTTP Site-to-Site can't handle TRANSACTION_FINISHED_BUT_DESTINATION_FULL
    scenario as expected.
    
    That happens if the remote NiFi's input port destination relationship
    becomes full during Site-to-Site client sends data. The data which has
    already sent to the remote NiFi has to be committed successfully.
    However, the remote NiFi returns 503 as a response of commit HTTP
    request. Because it does check port availability.
    
    The port availability check shouldn't be called at commit request, since
    the session at source NiFi has already been committed. The remote NiFi
    should commit its session as well, and return
    TRANSACTION_FINISHED_BUT_DESTINATION_FULL response.
    
    This fix makes a remote NiFi to keep the handshaken properties when it holds
    transaction to be committed. Then if a transaction already has
    handshaken properties, then use it, instead of doing a handshake process
    again.

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi pull request #714: NIFI-2259: HTTP Site-to-Site can't handle DEST_FULL

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---