ritegarg commented on code in PR #2302:
URL: https://github.com/apache/phoenix/pull/2302#discussion_r2467548582
##########
phoenix-core-server/src/main/java/org/apache/phoenix/hbase/index/IndexRegionObserver.java:
##########
@@ -633,13 +633,26 @@ public void
preBatchMutate(ObserverContext<RegionCoprocessorEnvironment> c,
+ "for current cluster, check configuration");
}
String tableName
- =
c.getEnvironment().getRegion().getRegionInfo().getTable().getNameAsString();
+ =
c.getEnvironment().getRegion().getRegionInfo().getTable().getNameAsString();
// We don't want to check for mutation blocking for the system ha
group table
if (!tableName.equals(SYSTEM_HA_GROUP_NAME)) {
// Extract HAGroupName from the mutations
final Set<String> haGroupNames =
extractHAGroupNameAttribute(miniBatchOp);
// Check if mutation is blocked for any of the HAGroupNames
for (String haGroupName : haGroupNames) {
+ //TODO: Below approach might be slow need to figure out
faster way, slower part is
Review Comment:
Created https://issues.apache.org/jira/browse/PHOENIX-7719 for this.
--
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]