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

client region/metadata cache should have a public method for invalidating entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.2.0
    • 0.2.1, 0.18.0
    • Client
    • None
    • Linux CentOS 5.1 x86_64 / JDK 1.6

    Description

      While writing a testcase for HBASE-62, I observed that table metadata is cached as part of the region information cached client side. This cached region information (and therefore table metadata) is not directly invalidated by disable/enable table, so to get up to date metadata the client may have to use a scanner over .META. directly using the meta visitor. Ideally other client code – for example the support for HBASE-62 – should be able to invalidate entries as necessary, so then the next HTable.getTableDescriptor() would go to meta to return up to date information instead of incorrectly reusing outdated information from the cache.

      Attachments

        1. 729.patch
          6 kB
          Andrew Kyle Purtell

        Issue Links

          Activity

            People

              apurtell Andrew Kyle Purtell
              apurtell Andrew Kyle Purtell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: