Uploaded image for project: 'Sqoop (READ-ONLY)'
  1. Sqoop (READ-ONLY)
  2. SQOOP-115

Sqoop hangs if an exception is thrown within ExportRecordWriter.getPreparedStatement( )

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Component/s: export
    • Labels:
      None

      Description

      AsyncSqlRecordWriter.execUpdate( ) calls getPreparedStatement( ).
      If getPreparedStatement( ) throws an exception, the "finally block" runs and calls AsyncSqlRecordWriter.close( ).
      AsyncSqlRecordWriter.close( ) calls execThread.join( ) - which hangs.

      The user sees this...

      10/10/14 10:05:05 INFO mapred.JobClient: Running job: job_201010111417_0015
      10/10/14 10:05:06 INFO mapred.JobClient: map 0% reduce 0%
      10/10/14 10:05:19 INFO mapred.JobClient: map 100% reduce 0%

      ...and the job never finishes.
      The user has to view the log file for the mapper to see that there is a problem.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              guylemar Guy le Mar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: