Sqoop
  1. Sqoop
  2. SQOOP-1113

Sqoop2: Text splitter will fail on interval "Breezy Badger"" to "Warty Warthog""

    Details

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

      Description

      Attached test case for text splitter will fail on following exception:

      java.lang.IllegalArgumentException
      	at java.lang.Character.toChars(Character.java:4982)
      	at org.apache.sqoop.connector.jdbc.GenericJdbcImportPartitioner.bigDecimalToText(GenericJdbcImportPartitioner.java:565)
      	at org.apache.sqoop.connector.jdbc.GenericJdbcImportPartitioner.constructTextConditions(GenericJdbcImportPartitioner.java:500)
      	at org.apache.sqoop.connector.jdbc.GenericJdbcImportPartitioner.partitionTextColumn(GenericJdbcImportPartitioner.java:269)
      	at org.apache.sqoop.connector.jdbc.GenericJdbcImportPartitioner.getPartitions(GenericJdbcImportPartitioner.java:99)
      	at org.apache.sqoop.connector.jdbc.GenericJdbcImportPartitioner.getPartitions(GenericJdbcImportPartitioner.java:38)
      	at org.apache.sqoop.connector.jdbc.TestImportPartitioner.testVarcharPartitionUbuntuEdition(TestImportPartitioner.java:463)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
      	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:196)
      	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:64)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
      
      1. failing_test.patch
        2 kB
        Jarek Jarcec Cecho
      2. SQOOP-1113.patch
        4 kB
        Venkat Ranganathan

        Issue Links

          Activity

          Hide
          Sqoop QA bot added a comment -

          Here are the results of testing the latest attachment
          https://issues.apache.org/jira/secure/attachment/12590697/SQOOP-1113.patch against branch sqoop2.

          Overall: +1 all checks pass

          SUCCESS: Clean was successful
          SUCCESS: Patch applied correctly
          SUCCESS: Patch compiled
          SUCCESS: All tests passed

          Console output: https://builds.apache.org/job/PreCommit-SQOOP-Build/40/console

          This message is automatically generated.

          Show
          Sqoop QA bot added a comment - Here are the results of testing the latest attachment https://issues.apache.org/jira/secure/attachment/12590697/SQOOP-1113.patch against branch sqoop2. Overall: +1 all checks pass SUCCESS: Clean was successful SUCCESS: Patch applied correctly SUCCESS: Patch compiled SUCCESS: All tests passed Console output: https://builds.apache.org/job/PreCommit-SQOOP-Build/40/console This message is automatically generated.
          Hide
          ASF subversion and git services added a comment -

          Commit 59c2188be7831f97d399a045d929b68a53195973 in branch refs/heads/sqoop2 from Jarek Jarcec Cecho
          [ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=59c2188 ]

          SQOOP-1113: Sqoop2: Text splitter will fail on interval "Breezy Badger"" to "Warty Warthog"

          (Venkat Ranganathan via Jarek Jarcec Cecho)

          Show
          ASF subversion and git services added a comment - Commit 59c2188be7831f97d399a045d929b68a53195973 in branch refs/heads/sqoop2 from Jarek Jarcec Cecho [ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=59c2188 ] SQOOP-1113 : Sqoop2: Text splitter will fail on interval "Breezy Badger"" to "Warty Warthog" (Venkat Ranganathan via Jarek Jarcec Cecho)
          Hide
          Jarek Jarcec Cecho added a comment -

          Thank you Venkat Ranganathan for jumping in and resolving this in such a short time!

          Show
          Jarek Jarcec Cecho added a comment - Thank you Venkat Ranganathan for jumping in and resolving this in such a short time!
          Hide
          Hudson added a comment -

          Integrated in Sqoop2-hadoop200 #436 (See https://builds.apache.org/job/Sqoop2-hadoop200/436/)
          SQOOP-1113: Sqoop2: Text splitter will fail on interval "Breezy Badger"" to "Warty Warthog" (Revision 59c2188be7831f97d399a045d929b68a53195973)

          Result = SUCCESS
          jarcec : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=59c2188be7831f97d399a045d929b68a53195973
          Files :

          • connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcImportPartitioner.java
          • connector/connector-generic-jdbc/src/test/java/org/apache/sqoop/connector/jdbc/TestImportPartitioner.java
          Show
          Hudson added a comment - Integrated in Sqoop2-hadoop200 #436 (See https://builds.apache.org/job/Sqoop2-hadoop200/436/ ) SQOOP-1113 : Sqoop2: Text splitter will fail on interval "Breezy Badger"" to "Warty Warthog" (Revision 59c2188be7831f97d399a045d929b68a53195973) Result = SUCCESS jarcec : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=59c2188be7831f97d399a045d929b68a53195973 Files : connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcImportPartitioner.java connector/connector-generic-jdbc/src/test/java/org/apache/sqoop/connector/jdbc/TestImportPartitioner.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop2-hadoop100 #456 (See https://builds.apache.org/job/Sqoop2-hadoop100/456/)
          SQOOP-1113: Sqoop2: Text splitter will fail on interval "Breezy Badger"" to "Warty Warthog" (Revision 59c2188be7831f97d399a045d929b68a53195973)

          Result = SUCCESS
          jarcec : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=59c2188be7831f97d399a045d929b68a53195973
          Files :

          • connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcImportPartitioner.java
          • connector/connector-generic-jdbc/src/test/java/org/apache/sqoop/connector/jdbc/TestImportPartitioner.java
          Show
          Hudson added a comment - Integrated in Sqoop2-hadoop100 #456 (See https://builds.apache.org/job/Sqoop2-hadoop100/456/ ) SQOOP-1113 : Sqoop2: Text splitter will fail on interval "Breezy Badger"" to "Warty Warthog" (Revision 59c2188be7831f97d399a045d929b68a53195973) Result = SUCCESS jarcec : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=59c2188be7831f97d399a045d929b68a53195973 Files : connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcImportPartitioner.java connector/connector-generic-jdbc/src/test/java/org/apache/sqoop/connector/jdbc/TestImportPartitioner.java

            People

            • Assignee:
              Venkat Ranganathan
              Reporter:
              Jarek Jarcec Cecho
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development