virajjasani commented on code in PR #2041:
URL: https://github.com/apache/phoenix/pull/2041#discussion_r1884559171


##########
phoenix-core-client/src/main/java/org/apache/phoenix/schema/PMetaDataImpl.java:
##########
@@ -83,14 +83,27 @@ private void updateGlobalMetric(PTableRef pTableRef) {
 
     @Override
     public PTableRef getTableRef(PTableKey key) throws TableNotFoundException {
+        return getTableRef(key, false);
+    }
+
+    @Override
+    public PTableRef getTableRefOptimized(PTableKey key) {
+        try {
+            return getTableRef(key, true);
+        } catch (TableNotFoundException e) {
+            throw new IllegalStateException(e);
+        }
+    }
+
+    private PTableRef getTableRef(PTableKey key, boolean 
doNotThrowTableNotFoundException) throws TableNotFoundException {

Review Comment:
   nit: use `skipTNFE` instead of `doNotThrowTableNotFoundException`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to