Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-491

JCache test fail under JDK 1.8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.7
    • gora-jcache
    • None

    Description

      I try to build gora under jdk1.8. I already have fixed some problems for gora-core and gora-couchdb. You can see from GORA-469 and https://github.com/apache/gora/pull/79 . But jcache map reduce test is fail under jdk 1.8. I run it with jdk 1.7 successfully. You can see fail log as follow:

      java.lang.AssertionError: 
      Expected :10
      Actual   :0
       <Click to see difference>
      
      
      	at org.junit.Assert.fail(Assert.java:93)
      	...
      org.apache.gora.mapreduce.MapReduceTestUtils.testCountQuery(MapReduceTestUtils.java:75)
      	at org.apache.gora.mapreduce.DataStoreMapReduceTestBase.testCountQuery(DataStoreMapReduceTestBase.java:82)
      	...
      

      I've not identified problems. I detect the problem from there:

      package org.apache.gora.mapreduce;
      
      ...
      
      public class MapReduceTestUtils {
      
      ...
      
      public static void testCountQuery(DataStore<String, WebPage> dataStore, Configuration conf)
            throws Exception {
      
      ...
          QueryCounter<String,WebPage> counter = new QueryCounter<>(conf);
      ...
          long result = counter.countQuery(query);
      ...
      }
      ...
      

      result is 10 under jdk1.7
      result is 0 under jdk1.8

      I try same test case for gora-infinispan, it is run successfully.

      Attachments

        Issue Links

          Activity

            People

              djkevincr Kevin Ratnasekera
              cguzel Cihad Guzel
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: