palashc commented on code in PR #1859:
URL: https://github.com/apache/phoenix/pull/1859#discussion_r1562968430


##########
phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexAsyncThresholdIT.java:
##########
@@ -162,9 +162,7 @@ public void testAsyncIndexCreation() throws Exception {
                 exception = (SQLException) e;
             }
             connection.commit();
-            PTableKey key = new PTableKey(null, this.tableName);
-            PMetaData metaCache = 
connection.unwrap(PhoenixConnection.class).getMetaDataCache();
-            List<PTable> indexes = 
metaCache.getTableRef(key).getTable().getIndexes();
+            List<PTable> indexes = 
connection.unwrap(PhoenixConnection.class).getTable(this.tableName).getIndexes();

Review Comment:
   This is to make sure we fetch the latest ptable. I think such changes are 
okay to keep even if UCF=always.



-- 
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