You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Palash Chauhan (Jira)" <ji...@apache.org> on 2024/01/02 23:32:00 UTC

[jira] [Created] (PHOENIX-7167) Last DDL Timestamp is set to null in connection which bootstraps System tables

Palash Chauhan created PHOENIX-7167:
---------------------------------------

             Summary: Last DDL Timestamp is set to null in connection which bootstraps System tables
                 Key: PHOENIX-7167
                 URL: https://issues.apache.org/jira/browse/PHOENIX-7167
             Project: Phoenix
          Issue Type: Sub-task
            Reporter: Palash Chauhan
            Assignee: Palash Chauhan


When trying to create SYSTEM.CATALOG table, a PTable object is bootstrapped in the client cache which is then overridden by what the server returns. When the table is not found (i.e. this is the first connection), LAST_DDL_TIMESTAMP ends up being null because of this code block:
{code:java}
.setLastDDLTimestamp(result.getTable() != null ?
                                result.getTable().getLastDDLTimestamp() : null) {code}
This leads to NPE when client tries to validate timestamp for SYSTEM.CATALOG table.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)