tkhurana commented on code in PR #2649:
URL: https://github.com/apache/phoenix/pull/2649#discussion_r4457751549


##########
phoenix-core-server/src/main/java/org/apache/phoenix/hbase/index/IndexRegionObserver.java:
##########
@@ -980,9 +981,9 @@ public void 
preBatchMutate(ObserverContext<RegionCoprocessorEnvironment> c,
         }
 
         if (StringUtils.isNotBlank(name) && 
haGroupStoreManager.isMutationBlocked(name)) {
-          throw new MutationBlockedIOException(

Review Comment:
   isHAGroupOnClientStale and isMutationBlocked each resolve the client and 
read the cached record. Each read is a Curator cache read followed by 
recordAndStat on the bytes. The TODO above the gate already flags this path as 
slow; fetching the record once and checking both conditions on it would halve 
the work



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