You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@s2graph.apache.org by "Injun Song (JIRA)" <ji...@apache.org> on 2016/05/10 17:12:12 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=15278476#comment-15278476 ]
Injun Song commented on S2GRAPH-65:
-----------------------------------
Is this issue still problem? Although type of futureCache is DeferCache[QueryResult], fetch method doesn't throw exception even if cacheTTL is greater than zero.
> Deferred produce exception.
> ---------------------------
>
> Key: S2GRAPH-65
> URL: https://issues.apache.org/jira/browse/S2GRAPH-65
> Project: S2Graph
> Issue Type: Bug
> Reporter: DOYUNG YOON
> Labels: cache, newbie, query
> 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)