Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-6506

Setting CACHE_BLOCKS to false in an hbase shell scan doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.94.0
    • 0.99.0
    • shell
    • hbase scan shell block cache

    Description

      I was attempting to prevent blocks from being cached by setting CACHE_BLOCKS => false in the hbase shell when doing a scan but I kept seeing tons of evictions when I ran it. After inspecting "table.rb" I found this line:

      cache = args["CACHE_BLOCKS"] || true

      The problem then is that if CACHE_BLOCKS is false then this expression will always return true. Therefore, it's impossible to turn off block caching.

      Attachments

        1. 6506.txt
          0.7 kB
          Michael Stack
        2. 6506.txt
          0.7 kB
          Michael Stack

        Activity

          People

            stack Michael Stack
            jbwyme Josh Wymer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified