You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@s2graph.apache.org by "DOYUNG YOON (JIRA)" <ji...@apache.org> on 2016/04/18 10:56:25 UTC

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

DOYUNG YOON created S2GRAPH-65:
----------------------------------

             Summary: Deferred produce exception.
                 Key: S2GRAPH-65
                 URL: https://issues.apache.org/jira/browse/S2GRAPH-65
             Project: S2Graph
          Issue Type: Bug
            Reporter: DOYUNG YOON


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)