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


##########
phoenix-core-server/src/main/java/org/apache/phoenix/index/PhoenixIndexMetaDataBuilder.java:
##########
@@ -162,8 +160,9 @@ private static IndexMetaDataCache 
getIndexMetaDataCacheFromPTable(
         props.setProperty(PhoenixRuntime.TENANT_ID_ATTRIB, tenantId);
       }
       QueryUtil.setServerConnection(props);
-      try (Connection conn = 
DriverManager.getConnection(getServerConnectionUrl(env), props)) {
+      try (Connection conn = 
DriverManager.getConnection(getServerConnectionUrl(), props)) {
         PhoenixConnection pconn = conn.unwrap(PhoenixConnection.class);
+        pconn.getQueryServices().clearUpgradeRequired();

Review Comment:
   This is already done by QueryUtil getServerConnection, just to be safer from 
doing any metadata upgrade.



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