[ 
https://issues.apache.org/jira/browse/HBASE-9907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819980#comment-13819980
 ] 

Nicolas Liochon commented on HBASE-9907:
----------------------------------------

I had to change this to make the TestClientNoCluster#main works.
{noformat}
diff --git 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MultiServerCallable.java
 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MultiServerCallable.java
index 0f66bd4..333d698 100644
--- 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MultiServerCallable.java
+++ 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MultiServerCallable.java
@@ -37,6 +37,7 @@ import 
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto;
 import org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionAction;
 
 import com.google.protobuf.ServiceException;
+import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos;
 
 /**
  * Callable that handles the <code>multi</code> method call going against a 
single
@@ -74,6 +75,8 @@ class MultiServerCallable<R> extends 
RegionServerCallable<MultiResponse> {
       final byte [] regionName = e.getKey();
       final List<Action<R>> actions = e.getValue();
       regionActionBuilder.clear();
+      regionActionBuilder.setRegion(
+          
RequestConverter.buildRegionSpecifier(HBaseProtos.RegionSpecifier.RegionSpecifierType.REGION_NAME,
 regionName) );
       if (this.cellBlock) {
         // Presize.  Presume at least a KV per Action.  There are likely more.
         if (cells == null) cells = new 
ArrayList<CellScannable>(countOfActions);
{noformat}

> Rig to fake a cluster so can profile client behaviors
> -----------------------------------------------------
>
>                 Key: HBASE-9907
>                 URL: https://issues.apache.org/jira/browse/HBASE-9907
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Client
>    Affects Versions: 0.96.0
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.98.0, 0.96.1
>
>         Attachments: 9907.txt, 9907.txt, 9907v2.txt, 9907v3.txt, 9907v3.txt, 
> 9907v3.txt.1
>
>
> Patch carried over from HBASE-9775 parent issue.  Adds to the 
> TestClientNoCluster#main a rig that allows faking many clients against a few 
> servers and the opposite.  Useful for studying client operation.
> Includes a few changes to pb makings to try and save on a few creations.
> Also has an edit of javadoc on how to create an HConnection and HTable trying 
> to be more forceful about pointing you in right direction ([~lhofhansl] -- 
> mind reviewing these javadoc changes?)
> I have a +1 already on this patch up in parent issue.  Will run by hadoopqa 
> to make sure all good before commit.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to