You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Venkat Ranganathan (JIRA)" <ji...@apache.org> on 2013/02/26 22:16:12 UTC

[jira] [Updated] (SQOOP-856) PGBulkLoadExportMapper has an infinite waitFor without any logging in the event of Interrupted exceptions

     [ https://issues.apache.org/jira/browse/SQOOP-856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Venkat Ranganathan updated SQOOP-856:
-------------------------------------

    Attachment: SQOOP-856.patch
    
> PGBulkLoadExportMapper has an infinite waitFor without any logging in the event of Interrupted exceptions
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: SQOOP-856
>                 URL: https://issues.apache.org/jira/browse/SQOOP-856
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.4.3
>         Environment: All, Postgresql database
>            Reporter: Venkat Ranganathan
>            Assignee: Venkat Ranganathan
>            Priority: Minor
>         Attachments: SQOOP-856.patch
>
>
> The PGBulkloadExportMapper has the following code fragment
>          try {
>             ...
>              process.waitFor();
>             ...
>           } catch (InterruptedException ie) {
>             // interrupted; loop around.
>             continue;
>           }
> We need to log an exception to note the fact that the thread was interrupted ( not sure of any condition except for spurious interrupts)
> Also we need to add a finally block to reset the interrupted condition as mentioned in http://bugs.sun.com/view_bug.do?bug_id=6420270

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira