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

Move some methods in ClusterConnection to Connection

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.2.0
    • Client
    • None
    • Reviewed
    • Hide
      Move the two getHbck method from ClusterConnection to Connection, and mark the methods as IA.LimitedPrivate(HBCK), as ClusterConnection is IA.Private and should not be depended by HBCK2.

      Add a clearRegionLocationCache method in Connection to clear the region location cache for all the tables. As in RegionLocator, most of the methods have a 'reload' parameter, which implicitly tells user that we have a region location cache, so adding a method to clear the cache is fine.
      Show
      Move the two getHbck method from ClusterConnection to Connection, and mark the methods as IA.LimitedPrivate(HBCK), as ClusterConnection is IA.Private and should not be depended by HBCK2. Add a clearRegionLocationCache method in Connection to clear the region location cache for all the tables. As in RegionLocator, most of the methods have a 'reload' parameter, which implicitly tells user that we have a region location cache, so adding a method to clear the cache is fine.

    Description

      For example, clearRegionCache, getHbck, etc. The getHbck method will be marked as IA.LimitedPrivate to indicate that normal user should not use it. And I think this is OK, as it is not easy to use the Hbck interface directly, and the name 'hbck' also implies that it should not be used for normal case.

      Attachments

        1. HBASE-21762.patch
          13 kB
          Duo Zhang
        2. HBASE-21762-v1.patch
          14 kB
          Duo Zhang

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: