Hive
  1. Hive
  2. HIVE-3691

TestDynamicSerDe failed with IBM JDK

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.7.1, 0.8.0, 0.9.0
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      ant-1.8.2, IBM JDK 1.6

      Description

      the order of the output in the gloden file are different from JDKs.
      the root cause of this is the implementation of HashMap in JDK

      1. HIVE-3691.1.patch-trunk.txt
        1 kB
        Bing Li
      2. HIVE-3691.1.patch.txt
        1 kB
        Renata Ghisloti Duarte de Souza

        Activity

        Hide
        Renata Ghisloti Duarte de Souza added a comment -

        I had the same problem with IBM JDK 1.6 and I made a patch that fixes the problem. The testcase continues on working on Sun Java. This patch was created against version 0.8.1.

        Show
        Renata Ghisloti Duarte de Souza added a comment - I had the same problem with IBM JDK 1.6 and I made a patch that fixes the problem. The testcase continues on working on Sun Java. This patch was created against version 0.8.1.
        Hide
        Bing Li added a comment -

        Another option is using LinkedHashMap instead of HashMap, it worked on both Sun JDK and IBM JDK as well.

        Show
        Bing Li added a comment - Another option is using LinkedHashMap instead of HashMap, it worked on both Sun JDK and IBM JDK as well.
        Hide
        Bing Li added a comment -

        the patch file is based on trunk,using LinkedHashMap

        Show
        Bing Li added a comment - the patch file is based on trunk,using LinkedHashMap
        Hide
        Bing Li added a comment -

        [~renata] I think LinkedHashMap is enough to this case, what's your opinion on this?

        Show
        Bing Li added a comment - [~renata] I think LinkedHashMap is enough to this case, what's your opinion on this?
        Hide
        Renata Ghisloti Duarte de Souza added a comment -

        Bing Li, I think both are ok in this case. If it works in IBM and Sun Java I am happy with either solution.

        Show
        Renata Ghisloti Duarte de Souza added a comment - Bing Li, I think both are ok in this case. If it works in IBM and Sun Java I am happy with either solution.
        Hide
        Bing Li added a comment -

        replace HashMap with LinkedHashMap in the test case to avoid different order of the output from different JDKs

        Show
        Bing Li added a comment - replace HashMap with LinkedHashMap in the test case to avoid different order of the output from different JDKs
        Hide
        Ashutosh Chauhan added a comment -

        +1

        Show
        Ashutosh Chauhan added a comment - +1
        Hide
        Ashutosh Chauhan added a comment -

        Committed to trunk. Thanks, Bing & Renata!

        Show
        Ashutosh Chauhan added a comment - Committed to trunk. Thanks, Bing & Renata!
        Hide
        Hudson added a comment -

        Integrated in Hive-trunk-h0.21 #2191 (See https://builds.apache.org/job/Hive-trunk-h0.21/2191/)
        HIVE-3691 : TestDynamicSerDe failed with IBM JDK (Bing Li & Renata Ghisloti via Ashutosh Chauhan) (Revision 1501687)

        Result = FAILURE
        hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1501687
        Files :

        • /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/dynamic_type/TestDynamicSerDe.java
        Show
        Hudson added a comment - Integrated in Hive-trunk-h0.21 #2191 (See https://builds.apache.org/job/Hive-trunk-h0.21/2191/ ) HIVE-3691 : TestDynamicSerDe failed with IBM JDK (Bing Li & Renata Ghisloti via Ashutosh Chauhan) (Revision 1501687) Result = FAILURE hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1501687 Files : /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/dynamic_type/TestDynamicSerDe.java
        Hide
        Hudson added a comment -

        Integrated in Hive-trunk-hadoop1-ptest #61 (See https://builds.apache.org/job/Hive-trunk-hadoop1-ptest/61/)
        HIVE-3691 : TestDynamicSerDe failed with IBM JDK (Bing Li & Renata Ghisloti via Ashutosh Chauhan) (Revision 1501687)

        Result = FAILURE
        hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1501687
        Files :

        • /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/dynamic_type/TestDynamicSerDe.java
        Show
        Hudson added a comment - Integrated in Hive-trunk-hadoop1-ptest #61 (See https://builds.apache.org/job/Hive-trunk-hadoop1-ptest/61/ ) HIVE-3691 : TestDynamicSerDe failed with IBM JDK (Bing Li & Renata Ghisloti via Ashutosh Chauhan) (Revision 1501687) Result = FAILURE hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1501687 Files : /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/dynamic_type/TestDynamicSerDe.java
        Hide
        Hudson added a comment -

        Integrated in Hive-trunk-hadoop2 #282 (See https://builds.apache.org/job/Hive-trunk-hadoop2/282/)
        HIVE-3691 : TestDynamicSerDe failed with IBM JDK (Bing Li & Renata Ghisloti via Ashutosh Chauhan) (Revision 1501687)

        Result = ABORTED
        hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1501687
        Files :

        • /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/dynamic_type/TestDynamicSerDe.java
        Show
        Hudson added a comment - Integrated in Hive-trunk-hadoop2 #282 (See https://builds.apache.org/job/Hive-trunk-hadoop2/282/ ) HIVE-3691 : TestDynamicSerDe failed with IBM JDK (Bing Li & Renata Ghisloti via Ashutosh Chauhan) (Revision 1501687) Result = ABORTED hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1501687 Files : /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/dynamic_type/TestDynamicSerDe.java
        Hide
        Hudson added a comment -

        FAILURE: Integrated in Hive-trunk-hadoop2-ptest #14 (See https://builds.apache.org/job/Hive-trunk-hadoop2-ptest/14/)
        HIVE-3691 : TestDynamicSerDe failed with IBM JDK (Bing Li & Renata Ghisloti via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1501687)

        • /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/dynamic_type/TestDynamicSerDe.java
        Show
        Hudson added a comment - FAILURE: Integrated in Hive-trunk-hadoop2-ptest #14 (See https://builds.apache.org/job/Hive-trunk-hadoop2-ptest/14/ ) HIVE-3691 : TestDynamicSerDe failed with IBM JDK (Bing Li & Renata Ghisloti via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1501687 ) /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/dynamic_type/TestDynamicSerDe.java
        Hide
        Ashutosh Chauhan added a comment -

        This issue has been fixed and released as part of 0.12 release. If you find further issues, please create a new jira and link it to this one.

        Show
        Ashutosh Chauhan added a comment - This issue has been fixed and released as part of 0.12 release. If you find further issues, please create a new jira and link it to this one.

          People

          • Assignee:
            Bing Li
            Reporter:
            Bing Li
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development