NihalJain commented on code in PR #6781:
URL: https://github.com/apache/hbase/pull/6781#discussion_r2028542735


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java:
##########
@@ -8933,13 +8938,23 @@ public void requestFlush(FlushLifeCycleTracker tracker) 
throws IOException {
    */
   private static void decorateRegionConfiguration(Configuration conf) {
     if (ReplicationUtils.isReplicationForBulkLoadDataEnabled(conf)) {
-      String plugins = conf.get(CoprocessorHost.REGION_COPROCESSOR_CONF_KEY, 
"");
       String replicationCoprocessorClass = 
ReplicationObserver.class.getCanonicalName();
+      String plugins = conf.get(CoprocessorHost.REGION_COPROCESSOR_CONF_KEY, 
"");
       if (!plugins.contains(replicationCoprocessorClass)) {
         conf.set(CoprocessorHost.REGION_COPROCESSOR_CONF_KEY,
           (plugins.equals("") ? "" : (plugins + ",")) + 
replicationCoprocessorClass);
       }
     }
+    appendToRegionCoprocessorConf(conf);
+  }
+
+  private static void appendToRegionCoprocessorConf(Configuration conf) {

Review Comment:
   add UTs for this method



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