phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mujtaba Chohan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PHOENIX-4316) Local Index - Splitting a local index on multi-tenant view fails with TNF exception
Date Mon, 23 Oct 2017 23:36:00 GMT
Mujtaba Chohan created PHOENIX-4316:
---------------------------------------

             Summary: Local Index - Splitting a local index on multi-tenant view fails with
TNF exception
                 Key: PHOENIX-4316
                 URL: https://issues.apache.org/jira/browse/PHOENIX-4316
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 4.12.0
            Reporter: Mujtaba Chohan


In the following logs TM is the base multi-tenant table and TV is the tenant specific view.
Local index is created on tenant specific view. RS aborts when table is split.

{noformat}
2017-10-23 16:25:42,263 ERROR [localhost,34512,1508783072608-daughterOpener=420df77ad7317fcf213772974498e192]
regionserver.HRegion: Could not initialize all stores for the region=TM,X\x00aaaaaaaa1024163863277142772527737277482810122859132922143041163750200364,1508801142038.420df77ad7317fcf213772974498e192.
2017-10-23 16:25:42,275 INFO  [localhost,34512,1508783072608-daughterOpener=420df77ad7317fcf213772974498e192]
regionserver.HStore: Closed 0
2017-10-23 16:25:42,275 ERROR [localhost,34512,1508783072608-daughterOpener=c753e6d674dd5c797ea6cf23941ce9f3]
regionserver.HRegion: Could not initialize all stores for the region=TM,,1508801142038.c753e6d674dd5c797ea6cf23941ce9f3.
2017-10-23 16:25:42,286 INFO  [localhost,34512,1508783072608-daughterOpener=c753e6d674dd5c797ea6cf23941ce9f3]
regionserver.HStore: Closed 0
2017-10-23 16:25:42,286 INFO  [RS:0;localhost:34512-splits-1508783666402] regionserver.SplitRequest:
Running rollback/cleanup of failed split of TM,,1508799266515.f3c6ebcb4e605e0b5c2098633967d73e.;
Failed localhost,34512,1508783072608-daughterOpener=c753e6d674dd5c797ea6cf23941ce9f3
java.io.IOException: Failed localhost,34512,1508783072608-daughterOpener=c753e6d674dd5c797ea6cf23941ce9f3
	at org.apache.hadoop.hbase.regionserver.SplitTransactionImpl.openDaughters(SplitTransactionImpl.java:499)
	at org.apache.hadoop.hbase.regionserver.SplitTransactionImpl.stepsAfterPONR(SplitTransactionImpl.java:597)
	at org.apache.hadoop.hbase.regionserver.SplitTransactionImpl.execute(SplitTransactionImpl.java:580)
	at org.apache.hadoop.hbase.regionserver.SplitRequest.doSplitting(SplitRequest.java:82)
	at org.apache.hadoop.hbase.regionserver.SplitRequest.run(SplitRequest.java:154)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: java.io.IOException: java.io.IOException: org.apache.phoenix.schema.TableNotFoundException:
ERROR 1012 (42M03): Table undefined. tableName=TV
	at org.apache.hadoop.hbase.regionserver.HRegion.initializeStores(HRegion.java:952)
	at org.apache.hadoop.hbase.regionserver.HRegion.initializeRegionInternals(HRegion.java:827)
	at org.apache.hadoop.hbase.regionserver.HRegion.initialize(HRegion.java:802)
	at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6708)
	at org.apache.hadoop.hbase.regionserver.SplitTransactionImpl.openDaughterRegion(SplitTransactionImpl.java:731)
	at org.apache.hadoop.hbase.regionserver.SplitTransactionImpl$DaughterOpener.run(SplitTransactionImpl.java:711)
	... 1 more
Caused by: java.io.IOException: java.io.IOException: org.apache.phoenix.schema.TableNotFoundException:
ERROR 1012 (42M03): Table undefined. tableName=TV
	at org.apache.hadoop.hbase.regionserver.HStore.openStoreFiles(HStore.java:560)
	at org.apache.hadoop.hbase.regionserver.HStore.loadStoreFiles(HStore.java:514)
	at org.apache.hadoop.hbase.regionserver.HStore.<init>(HStore.java:277)
	at org.apache.hadoop.hbase.regionserver.HRegion.instantiateHStore(HRegion.java:5185)
	at org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:926)
	at org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:923)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	... 1 more
Caused by: java.io.IOException: org.apache.phoenix.schema.TableNotFoundException: ERROR 1012
(42M03): Table undefined. tableName=TV
	at org.apache.hadoop.hbase.regionserver.IndexHalfStoreFileReaderGenerator.preStoreFileReaderOpen(IndexHalfStoreFileReaderGenerator.java:174)
	at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$64.call(RegionCoprocessorHost.java:1580)
	at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionOperation.call(RegionCoprocessorHost.java:1673)
	at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1749)
	at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperationWithResult(RegionCoprocessorHost.java:1712)
	at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.preStoreFileReaderOpen(RegionCoprocessorHost.java:1575)
	at org.apache.hadoop.hbase.regionserver.StoreFileInfo.open(StoreFileInfo.java:251)
	at org.apache.hadoop.hbase.regionserver.StoreFile.open(StoreFile.java:427)
	at org.apache.hadoop.hbase.regionserver.StoreFile.createReader(StoreFile.java:528)
	at org.apache.hadoop.hbase.regionserver.StoreFile.createReader(StoreFile.java:518)
	at org.apache.hadoop.hbase.regionserver.HStore.createStoreFileAndReader(HStore.java:667)
	at org.apache.hadoop.hbase.regionserver.HStore.access$000(HStore.java:119)
	at org.apache.hadoop.hbase.regionserver.HStore$1.call(HStore.java:534)
	at org.apache.hadoop.hbase.regionserver.HStore$1.call(HStore.java:531)
	... 6 more
Caused by: org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined.
tableName=TV
	at org.apache.phoenix.schema.PMetaDataImpl.getTableRef(PMetaDataImpl.java:71)
	at org.apache.phoenix.jdbc.PhoenixConnection.getTable(PhoenixConnection.java:572)
	at org.apache.phoenix.util.PhoenixRuntime.getTable(PhoenixRuntime.java:444)
	at org.apache.phoenix.util.IndexUtil.getPDataTable(IndexUtil.java:791)
	at org.apache.hadoop.hbase.regionserver.IndexHalfStoreFileReaderGenerator.preStoreFileReaderOpen(IndexHalfStoreFileReaderGenerator.java:154)
	... 19 more
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message