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

Table Coprocessor can't access external HTable by default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.95.1, 0.94.9
    • None
    • None

    Description

      With the default configuration passed to a RegionCoprocessor environment, you cannot reach an HTable on the same cluster (at least in 0.94 - no verified yet in 0.96/8). The reason is in the usage of CompoundConfiguration (backported to 0.94 in HBASE-8176) when loading a table coprocessor we just do (RegionCoprocessorHost, ln 182):

      Configuration newConf = new Configuration(conf);
      // set per-table cfspec properties
      

      but the conf we pass in a CompoundConfiguration, which means the copy constructor from Configuration doesn't work at all.

      So, we really need two things:
      1. A test that we can reach another HTable in the same cluster via a coprocessor by default
      2. Fixing the configuration creation in RegionCoprocessorHost to support (1)

      Attachments

        1. hbase-8684-trunk-v1.patch
          6 kB
          Jesse Yates
        2. hbase-8684-trunk-addendum.patch
          10 kB
          Jesse Yates
        3. hbase-8684-0.94-v4.patch
          14 kB
          Jesse Yates
        4. hbase-8684-0.94-v3.patch
          14 kB
          Jesse Yates
        5. hbase-8684-0.94-v2.patch
          11 kB
          Jesse Yates
        6. hbase-8684-0.94-v1.patch
          11 kB
          Jesse Yates
        7. hbase-8684-0.94-v0.patch
          11 kB
          Jesse Yates
        8. hbase-8684-0.94-addendum.patch
          10 kB
          Jesse Yates
        9. 8684-trunk.txt
          6 kB
          Ted Yu

        Activity

          People

            jesse_yates Jesse Yates
            jesse_yates Jesse Yates
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: