Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15654 Optimize client's MetaCache handling
  3. HBASE-15354

Use same criteria for clearing meta cache for all operations

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0, 1.3.0, 2.0.0
    • 1.3.0, 1.2.1, 2.0.0
    • Client
    • None
    • Hide
      This patch fixes some issues when MetaCache (region location cache) gets unnecessarily dropped on the client.

      On master branch we now in RegionServerCallable and RegionServerAdminCallable pass the actual exception down to Connection#updateCachedLocation, so we could check there if the exception is "meta-clearing" or not.

      on branch-1, branch-1.2 and branch 1.3 we now check if the exception is meta-clearing or not in AsyncProcess (this check was there on master, but not on earlier branches)
      Show
      This patch fixes some issues when MetaCache (region location cache) gets unnecessarily dropped on the client. On master branch we now in RegionServerCallable and RegionServerAdminCallable pass the actual exception down to Connection#updateCachedLocation, so we could check there if the exception is "meta-clearing" or not. on branch-1, branch-1.2 and branch 1.3 we now check if the exception is meta-clearing or not in AsyncProcess (this check was there on master, but not on earlier branches)

    Description

      Currently we do not clear/update meta cache for some special exceptions if the operation went through AsyncProcess#submit like HTable#put calls. But, we clear meta cache without checking for these special exceptions in case of other operations like gets, deletes etc because they directly go through the RpcRetryingCaller#callWithRetries instead of the AsyncProcess.

      Attachments

        1. HBASE-15354-v5-addendum.patch
          6 kB
          Mikhail Antonov
        2. HBASE-15354-V5.patch
          14 kB
          Ashu Pachauri
        3. HBASE-15354-V4.patch
          14 kB
          Ashu Pachauri
        4. HBASE-15354-V3.patch
          16 kB
          Ashu Pachauri
        5. HBASE-15354-V2.patch
          16 kB
          Ashu Pachauri
        6. HBASE-15354-V1.patch
          6 kB
          Ashu Pachauri
        7. HBASE-15354-V0.patch
          5 kB
          Ashu Pachauri

        Issue Links

          Activity

            People

              ashu210890 Ashu Pachauri
              ashu210890 Ashu Pachauri
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: