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

Set max result size from client only (like scanner caching).

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.1, 1.1.0, 0.98.12, 2.0.0
    • None
    • None
    • Reviewed
    • Hide
      This introduces a new config option: hbase.server.scanner.max.result.size
      This setting enforces a maximum result size (in bytes), when reached the server will return the results is has so far.
      This is a safety setting and should be kept large. The default is inifinite in 0.98 and 1.0.x and 100mb in 1.1 and later.

      Use hbase.client.scanner.max.result.size instead to enforce practical chunk sizes of a few mb (defaults to 2mb)
      Show
      This introduces a new config option: hbase.server.scanner.max.result.size This setting enforces a maximum result size (in bytes), when reached the server will return the results is has so far. This is a safety setting and should be kept large. The default is inifinite in 0.98 and 1.0.x and 100mb in 1.1 and later. Use hbase.client.scanner.max.result.size instead to enforce practical chunk sizes of a few mb (defaults to 2mb)

    Description

      With the recent problems we've been seeing client/server result size mismatch, I was thinking: Why was this not a problem with scanner caching?

      There are two reasons:

      1. number of rows is easy to calculate (and we did it correctly)
      2. caching is only controlled from the client, never set on the server alone

      We did fix both #1 and #2 in HBASE-13262.

      Still, I'd like to discuss the following:

      • default the client sent max result size to 2mb
      • remove any server only result sizing
      • continue to use hbase.client.scanner.max.result.size but enforce it via the client only (as the name implies anyway).

      Comments? Concerns?

      Attachments

        1. 13362-0.98.txt
          3 kB
          Lars Hofhansl
        2. 13362-master.txt
          3 kB
          Lars Hofhansl
        3. 13362-master-v2.txt
          4 kB
          Lars Hofhansl

        Issue Links

          Activity

            People

              larsh Lars Hofhansl
              larsh Lars Hofhansl
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: