HBase
  1. HBase
  2. HBASE-3009

ICV-style update of Memstore for single-qualifier and frequent puts

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      We had an internal need for a method to update a single cell thousands of times per second without having a "versions explosion" problem, and found that the code can be somewhat easily modified for that by reusing Store.updateColumnValue and making it accept byte[]. I'm putting the patch here in case someone else finds it useful, and maybe it can eventually make its way into the source.

      1. HBASE-3009-v2.patch
        5 kB
        Jean-Daniel Cryans
      2. HBASE-3009.patch
        5 kB
        Jean-Daniel Cryans

        Activity

        Hide
        Jean-Daniel Cryans added a comment -

        Didn't see the need for it again in almost 3 years.

        Show
        Jean-Daniel Cryans added a comment - Didn't see the need for it again in almost 3 years.
        Hide
        Jean-Daniel Cryans added a comment -

        This patch fixes an important issue about memstore size when putting multiple columns that the previous patch introduces.

        Show
        Jean-Daniel Cryans added a comment - This patch fixes an important issue about memstore size when putting multiple columns that the previous patch introduces.
        Hide
        Jean-Daniel Cryans added a comment -

        Patch that adds the desired behavior. It requires that the family is configured to only keep one version and that the Put is done only one cell. It's kinda hacky.

        Show
        Jean-Daniel Cryans added a comment - Patch that adds the desired behavior. It requires that the family is configured to only keep one version and that the Put is done only one cell. It's kinda hacky.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jean-Daniel Cryans
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development