ritegarg commented on code in PR #2075:
URL: https://github.com/apache/phoenix/pull/2075#discussion_r1996324608


##########
phoenix-core-client/src/main/java/org/apache/phoenix/cache/ServerMetadataCacheImpl.java:
##########
@@ -142,15 +152,28 @@ public long getLastDDLTimestampForTable(byte[] tenantID, 
byte[] schemaName, byte
      * @param schemaName schemaName
      * @param tableName tableName
      */
-    public void invalidate(byte[] tenantID, byte[] schemaName, byte[] 
tableName) {
+    public void invalidateLastDDLTimestampForTable(byte[] tenantID, byte[] 
schemaName, byte[] tableName) {
         LOGGER.info("Invalidating server metadata cache for tenantID: {}, 
schema: {},  table: {}",
                 Bytes.toString(tenantID), Bytes.toString(schemaName), 
Bytes.toString(tableName));
         byte[] tableKey = SchemaUtil.getTableKey(tenantID, schemaName, 
tableName);
         ImmutableBytesPtr tableKeyPtr = new ImmutableBytesPtr(tableKey);
         lastDDLTimestampMap.invalidate(tableKeyPtr);
     }
 
+    @Override
+    public boolean isMutationBlocked() {
+        return mutationBlockEnabled && phoenixHACache != null && 
phoenixHACache.isClusterInActiveToStandby();
+    }
+
+    @Override
+    public void invalidatePhoenixHACache() throws Exception {
+        if (phoenixHACache != null) {
+            phoenixHACache.rebuild(null);

Review Comment:
   Removed this parameter in new implementation



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