Uploaded image for project: 'S2Graph'
  1. S2Graph
  2. S2GRAPH-64

incrementCounts yield type case exception.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • 0.1.0
    • None

    Description

      when call incrementCounts I got following exception.

      ClassCastException: org.apache.s2graph.core.storage.SKeyValue cannot be cast to org.hbase.async.AtomicIncrementRequest exception
      

      This is because of invalid type cast on AsynchbaseStorage#incrementCounts. we need to create AtomicIncrementRequest from SKeyValue and use it with client.

      val incr = buildIncrementsCountAsync(edgeWithIndex, countVal).head
      val request = incr.asInstanceOf[AtomicIncrementRequest]
      _client.bufferAtomicIncrement(request) withCallback { resultCount: java.lang.Long =>
                 (true, resultCount.longValue())
               }
      

      Attachments

        Issue Links

          Activity

            People

              steamshon Do Yung Yoon
              steamshon Do Yung Yoon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified