Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-12776

when memtable flush Statistics thisOffHeap error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 3.0.10, 3.10
    • None
    • Low

    Description

      if (largest != null)
                  {
                      float usedOnHeap = Memtable.MEMORY_POOL.onHeap.usedRatio();
                      float usedOffHeap = Memtable.MEMORY_POOL.offHeap.usedRatio();
                      float flushingOnHeap = Memtable.MEMORY_POOL.onHeap.reclaimingRatio();
                      float flushingOffHeap = Memtable.MEMORY_POOL.offHeap.reclaimingRatio();
                      float thisOnHeap = largest.getAllocator().onHeap().ownershipRatio();
                      float thisOffHeap = largest.getAllocator().onHeap().ownershipRatio();
                      logger.info("Flushing largest {} to free up room. Used total: {}, live: {}, flushing: {}, this: {}",
                                  largest.cfs, ratio(usedOnHeap, usedOffHeap), ratio(liveOnHeap, liveOffHeap),
                                  ratio(flushingOnHeap, flushingOffHeap), ratio(thisOnHeap, thisOffHeap));
                      largest.cfs.switchMemtableIfCurrent(largest);
                  }
      

      Should:

      float thisOffHeap = largest.getAllocator().onHeap().ownershipRatio();
      

      Be:

      offHeap().ownershipRatio();

      Attachments

        1. 12776.patch
          1 kB
          Kurt Greaves

        Activity

          People

            KurtG Kurt Greaves
            zhaiyuyong scott.zhai
            Kurt Greaves
            Jeff Jirsa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: