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

Scanner from RegionCoprocessorEnvironment.getTable(TableName) returns no local data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.98.4
    • 0.98.6
    • Coprocessors
    • None
    • Reviewed

    Description

      Might be fixed as a byproduct of the fix for HBASE-11766.

      Here's what I'm seeing:

      • From an endpoint coprocessor on SYSTEM.CATALOG table
      • Rows exist in the table, but are all in a single region
      • Scan is a new, empty scan created like this: new Scan()
      • The following scanner does return data:
            RegionScanner scanner = region.getScanner(scan);
        
      • The following scanner does not return any data:
        HTableInterface hTable = env.getTable(region.getTableDesc().getTableName());
        
      • The following scanner does return data:
                HTablePool pool = new HTablePool (env.getConfiguration(),1);
                HTableInterface hTable = pool.getTable("SYSTEM.CATALOG");
        

      jeffreyz, apurtell

      Attachments

        1. HBASE-11837.patch
          3 kB
          Jeffrey Zhong
        2. PHOENIX-1208-torepro.patch
          11 kB
          James R. Taylor

        Activity

          People

            jeffreyz Jeffrey Zhong
            jamestaylor James R. Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: