You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Vincent Poon (JIRA)" <ji...@apache.org> on 2017/10/05 23:59:00 UTC
[jira] [Updated] (PHOENIX-4242) Fix Indexer post-compact hook
logging of NPE and TableNotFound
[ https://issues.apache.org/jira/browse/PHOENIX-4242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Poon updated PHOENIX-4242:
----------------------------------
Attachment: PHOENIX-4747.v1.master.patch
[~jamestaylor] PhoenixRuntime#getTableNoCache() isn't working for System tables, because we set alwaysHitServer to true when calling updateCache(), which skips this logic:
https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java#L584
Seems the simple fix is to set the table in the result on the line further down, please see attached patch.
For the TableNotFoundExceptions, I think the reason might be because we're creating HBase non-Phoenix tables, which for some reason have the Indexer coprocessor loaded? Any idea how that might happen? We don't seem to have this problem with UngroupedAggregateRegionObserver.
> Fix Indexer post-compact hook logging of NPE and TableNotFound
> --------------------------------------------------------------
>
> Key: PHOENIX-4242
> URL: https://issues.apache.org/jira/browse/PHOENIX-4242
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.12.0
> Reporter: Vincent Poon
> Assignee: Vincent Poon
> Attachments: PHOENIX-4747.v1.master.patch
>
>
> The post-compact hook in the Indexer seems to log extraneous log messages indicating NPE or TableNotFound. The TableNotFound exceptions seem to indicate actual table names prefixed with MERGE or RESTORE, and sometimes suffixed with a digit, so perhaps these are views or something similar.
> Examples:
> 2017-09-28 13:35:03,118 WARN [ctions-1506410238599] index.Indexer - Unable to permanently disable indexes being partially rebuild for SYSTEM.SEQUENCE
> java.lang.NullPointerException
> 2017-09-28 10:20:56,406 WARN [ctions-1506410238415] index.Indexer - Unable to permanently disable indexes being partially rebuild for MERGE_PLATFORM_ENTITY.PLATFORM_IMMUTABLE_ENTITY_DATA2
> org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined. tableName=MERGE_PLATFORM_ENTITY.PLATFORM_IMMUTABLE_ENTITY_DATA2
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)