GitHub user amyrazz44 opened a pull request:

    https://github.com/apache/incubator-hawq/pull/1243

    fix share input scan bug for writer part

    Using flock tmp file with unblock way to resolve this hung bug. The details 
are as below:
    
    For writer : 
    Writer will create a tmp file and flock it once writer has created all the 
tuples before make the corresponding fifo. 
    
    For reader : 
    When select time out, reader will check the tmp file. If the tmp file never 
appear,  reader will wait  5 minutes. After 5 minutes, reader will quit. 
     If the tmp file exists, Reader will try to flock the tmp file which 
created by writer with unblock way.
     So if writer process quit, reader will flock the tmp file successfully, 
then reader will know there is something wrong with writer and will quit either.
    
    The reader wait for writer part will in the next pr.

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

    $ git pull https://github.com/amyrazz44/incubator-hawq SISCWrtier

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

    https://github.com/apache/incubator-hawq/pull/1243.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 #1243
    
----
commit 0583ba0c5b71deee198fae734fc76277ab2a5982
Author: amyrazz44 <a...@pivotal.io>
Date:   2017-05-08T09:27:07Z

    fix share input scan bug for writer part

----


---
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.
---

Reply via email to