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

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

GitHub user SteamShon opened a pull request:

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

    [S2GRAPH-64]: incrementCounts yield type case exception.

    + fix incorrect type casting bug.

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

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

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

    https://github.com/apache/incubator-s2graph/pull/58.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 #58
    
----
commit 8638dd6b10821cbfcba07bd84ff53b8911dc7e67
Author: DO YUNG YOON <[email protected]>
Date:   2016-06-10T12:49:26Z

    [S2GRAPH-64]: incrementCounts yield type case exception.

----


> incrementCounts yield type case exception.
> ------------------------------------------
>
>                 Key: S2GRAPH-64
>                 URL: https://issues.apache.org/jira/browse/S2GRAPH-64
>             Project: S2Graph
>          Issue Type: Bug
>            Reporter: DOYUNG YOON
>            Assignee: DOYUNG YOON
>              Labels: newbie, write
>             Fix For: 0.1.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> when call incrementCounts I got following exception.
> {noformat}
> ClassCastException: org.apache.s2graph.core.storage.SKeyValue cannot be cast 
> to org.hbase.async.AtomicIncrementRequest exception
> {noformat}
> This is because of invalid type cast on AsynchbaseStorage#incrementCounts. we 
> need to create AtomicIncrementRequest from SKeyValue and use it with client.
> {noformat}
> val incr = buildIncrementsCountAsync(edgeWithIndex, countVal).head
> val request = incr.asInstanceOf[AtomicIncrementRequest]
> _client.bufferAtomicIncrement(request) withCallback { resultCount: 
> java.lang.Long =>
>            (true, resultCount.longValue())
>          }
> {noformat}



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

Reply via email to