Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-2367

Tests from PostgresqlImportTest can fail on various versions of Hadoop

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.6
    • Fix Version/s: 1.4.7
    • Component/s: None
    • Labels:
      None

      Description

      I've noticed that three tests from PostgresqlImportTest has been failing consistently in my environment (with variously patched Hadoop version):

      • testDifferentSchemaImport
      • testJdbcBasedImport
      • testTableNameWithSpecialCharacter

      Further investigation has showed that the PostgresqlImportTest is verifying output by checking one specific file output whereas in my environment Hadoop output consisted of two files instead. Hence the tests were confused and were reporting missing rows. I feel that the fix is simple in this case - since we are expecting one output file, we should specify -m 1 as parameter to force one single mapper.

        Attachments

        1. SQOOP-2367.patch
          0.6 kB
          Jarek Jarcec Cecho

          Activity

            People

            • Assignee:
              jarcec Jarek Jarcec Cecho
              Reporter:
              jarcec Jarek Jarcec Cecho
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: