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/01/31 01:41:14 UTC

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

Venkat Ranganathan created SQOOP-856:
----------------------------------------

             Summary: 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


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