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

EmptyTypeList when returned from DatabaseProvider class results in NPE in TestNG

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.99.5
    • Fix Version/s: 1.99.7
    • Component/s: sqoop2-test
    • Labels:
      None

      Description

      Right now by default DatabaseProvider class returns EmptyTypeList. But surprisingly, TestNG is unable to handle empty list and throws NPE in tests which run for DB providers which dont have their own TypesLists.

      We should add a DefaultTypesList which returns a minimal type (INT) and some tests on it and return it by default instead of EmptyTypeList.

        Attachments

        1. SQOOP-2303-2.patch
          4 kB
          Syed A. Hashmi
        2. SQOOP-2303-1.patch
          3 kB
          Syed A. Hashmi

          Activity

            People

            • Assignee:
              shashmi Syed A. Hashmi
              Reporter:
              shashmi Syed A. Hashmi
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: