You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@s2graph.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/06/10 13:10:20 UTC

[jira] [Commented] (S2GRAPH-65) Deferred produce exception.

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

ASF GitHub Bot commented on S2GRAPH-65:
---------------------------------------

GitHub user SteamShon opened a pull request:

    https://github.com/apache/incubator-s2graph/pull/59

    [S2GRAPH-65]: Deferred produce exception.

    + fix type cast bug.

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

    $ git pull https://github.com/SteamShon/incubator-s2graph S2GRAPH-65

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

    https://github.com/apache/incubator-s2graph/pull/59.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 #59
    
----
commit bf65df5a6081dc31605257a4e72311f1c6c08281
Author: DO YUNG YOON <st...@apache.org>
Date:   2016-06-10T13:06:44Z

    [S2GRAPH-65]: Deferred produce exception.

commit 9cb04f5d733f9fe8342deff2595fefa1311ae5f0
Author: DO YUNG YOON <st...@apache.org>
Date:   2016-06-10T13:07:46Z

    update changes.

----


> Deferred produce exception.
> ---------------------------
>
>                 Key: S2GRAPH-65
>                 URL: https://issues.apache.org/jira/browse/S2GRAPH-65
>             Project: S2Graph
>          Issue Type: Bug
>            Reporter: DOYUNG YOON
>            Assignee: DOYUNG YOON
>              Labels: cache, newbie, query
>             Fix For: 0.1.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Current code has type bug on DeferCache.
> We are specify type of value which will be stored in local cache as {{Deferred\[QueryResult\]}} but actual fetchInner expect {{Deferred\[QueryRequestWithResult\]}} in AsynchbaseStorage.scala. 
> This only occur when queryParam has cacheTTL option.
> wrong type.
> {noformat}
> private val futureCache = new DeferCache[QueryResult](config)(ec)
> {noformat}
> right type.
> {noformat}
> private val futureCache = new DeferCache[QueryRequestWithResult](config)(ec)
> {noformat}
> also caller of this futureCache variable need to be changed according to right type.



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