Uploaded image for project: 'HCatalog'
  1. HCatalog
  2. HCATALOG-505

testSyntheticComplexSchema and testMapWithComplexData fail in JDK 1.7 64 bit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.4, 0.5
    • None
    • test
    • None
    • Java 1.7 64 bit and RHEL 6

    Description

      Tests fail when doing the following:

      private void verifyWriteRead 
      {
         while (it.hasNext()) {
         Tuple input = data.get(i++);
         Tuple output = it.next();
         Assert.assertEquals(input.toString(), output.toString());
         LOG.info("tuple : {} ",output);
      }
      

      and is reported in the following way:

      Testcase: testSyntheticComplexSchema took 17.693 sec
      FAILED
      expected:<...1#test 1,ac test2#test 2...> but was:<...2#test 2,ac test1#test 1...>
      junit.framework.ComparisonFailure: expected:<...1#test 1,ac test2#test 2...> but was:<...2#test 2,ac test1#test 1...>
      at org.apache.hcatalog.pig.TestHCatLoaderComplexSchema.verifyWriteRead(TestHCatLoaderComplexSchema.java:203)
      at org.apache.hcatalog.pig.TestHCatLoaderComplexSchema.testSyntheticComplexSchema(TestHCatLoaderComplexSchema.java:171)

      Testcase: testTupleInBagInTupleInBag took 50.637 sec
      Testcase: testMapWithComplexData took 12.558 sec
      FAILED
      expected:<...2#(2,test 2),b test 1#(1,test 1...> but was:<...1#(1,test 1),b test 2#(2,test 2...>
      junit.framework.ComparisonFailure: expected:<...2#(2,test 2),b test 1#(1,test 1...> but was:<...1#(1,test 1),b test 2#(2,test 2...>
      at org.apache.hcatalog.pig.TestHCatLoaderComplexSchema.verifyWriteRead(TestHCatLoaderComplexSchema.java:203)
      at org.apache.hcatalog.pig.TestHCatLoaderComplexSchema.testMapWithComplexData(TestHCatLoaderComplexSchema.java:284)

      We may need to change the way we are comparing complex tuples!!

      Attachments

        Issue Links

          Activity

            People

              viraj Viraj Bhat
              viraj Viraj Bhat
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: