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

Deferred produce exception.

    XMLWordPrintableJSON

Details

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

    Description

      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.

      private val futureCache = new DeferCache[QueryResult](config)(ec)
      

      right type.

      private val futureCache = new DeferCache[QueryRequestWithResult](config)(ec)
      

      also caller of this futureCache variable need to be changed according to right type.

      Attachments

        Issue Links

          Activity

            People

              steamshon Do Yung Yoon
              steamshon Do Yung Yoon
              Votes:
              0 Vote for this issue
              Watchers:
              3 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