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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.98.4
    • Fix Version/s: 0.98.6
    • Component/s: Coprocessors
    • Labels:
      None
    • Hadoop Flags:
      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");
        

      Jeffrey Zhong, Andrew Kyle Purtell

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: