Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-892

Multi-tenant - Creating index throws NoSuchColumnFamilyException when CF is specified in base table

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 4.0.0
    • Fix Version/s: 3.0.0, 4.0.0
    • Labels:
      None

      Description

      Base table:
      CREATE TABLE MT_BASE (PK1 VARCHAR not null, PK2 VARCHAR not null, MYCF1.COL1 varchar,MYCF2.COL2 varchar CONSTRAINT pk PRIMARY KEY(PK1,PK2)) MULTI_TENANT=true;
      Tenant specific table:
      CREATE VIEW acme AS SELECT * FROM MT_BASE;
      Create index:
      create index idx_acme on acme (COL1)
      Result:
      org.apache.hadoop.hbase.regionserver.HRegion: No such column family in batch mutation
      org.apache.hadoop.hbase.regionserver.NoSuchColumnFamilyException: Column family 0 does not exist in region _IDX_MT_BASE,\x09\x00\x00,1395771398183.f61eab1751da24846c37ce55d18abbd8. in table '_IDX_MT_BASE'
      at org.apache.hadoop.hbase.regionserver.HRegion.checkFamily(HRegion.java:5499)
      at org.apache.hadoop.hbase.regionserver.HRegion.checkFamilies(HRegion.java:3023)
      at org.apache.hadoop.hbase.regionserver.HRegion.doMiniBatchMutation(HRegion.java:2282)
      at org.apache.hadoop.hbase.regionserver.HRegion.batchMutate(HRegion.java:2177)
      at org.apache.hadoop.hbase.regionserver.HRegionServer.multi(HRegionServer.java:3865)
      at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:323)
      at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1426)

        Attachments

          Activity

            People

            • Assignee:
              jamestaylor James R. Taylor
              Reporter:
              mujtabachohan Mujtaba Chohan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: