You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/28 02:26:21 UTC

[jira] [Commented] (GORA-491) JCache test fail under JDK 1.8

    [ https://issues.apache.org/jira/browse/GORA-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15442596#comment-15442596 ] 

ASF GitHub Bot commented on GORA-491:
-------------------------------------

GitHub user djkevincr opened a pull request:

    https://github.com/apache/gora/pull/80

    GORA-491 adding fix

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/djkevincr/gora GORA-491

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/gora/pull/80.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #80
    
----
commit e943b5a036644c850227d8de8d665eed45510f59
Author: Kevin <dj...@yahoo.com>
Date:   2016-08-28T02:24:03Z

    GORA-491 adding fix

----


> JCache test fail under JDK 1.8
> ------------------------------
>
>                 Key: GORA-491
>                 URL: https://issues.apache.org/jira/browse/GORA-491
>             Project: Apache Gora
>          Issue Type: Bug
>          Components: gora-jcache
>            Reporter: Cihad Guzel
>
> 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: 
> {code}
> 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)
> 	...
> {code}
> I've not identified problems. I detect the problem from there:
> {code}
> 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);
> ...
> }
> ...
> {code}
> result is 10 under jdk1.7
> result is 0 under jdk1.8
> I try same test case for gora-infinispan, it is run successfully.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)