hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1295431 - in /hbase/branches/0.94/src: main/java/org/apache/hadoop/hbase/client/coprocessor/Exec.java test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpoint.java
Date Thu, 01 Mar 2012 06:52:35 GMT
Author: stack
Date: Thu Mar  1 06:52:35 2012
New Revision: 1295431

URL: http://svn.apache.org/viewvc?rev=1295431&view=rev
Log:
HBASE-5491 Remove HBaseConfiguration.create() call from coprocessor.Exec class

Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/coprocessor/Exec.java
    hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpoint.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/coprocessor/Exec.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/coprocessor/Exec.java?rev=1295431&r1=1295430&r2=1295431&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/coprocessor/Exec.java
(original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/coprocessor/Exec.java
Thu Mar  1 06:52:35 2012
@@ -52,7 +52,6 @@ import java.lang.reflect.Method;
  * @see org.apache.hadoop.hbase.client.HTable#coprocessorExec(Class, byte[], byte[], org.apache.hadoop.hbase.client.coprocessor.Batch.Call,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback)
  */
 public class Exec extends Invocation implements Row {
-  private Configuration conf = HBaseConfiguration.create();
   /** Row key used as a reference for any region lookups */
   private byte[] referenceRow;
   private Class<? extends CoprocessorProtocol> protocol;

Modified: hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpoint.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpoint.java?rev=1295431&r1=1295430&r2=1295431&view=diff
==============================================================================
--- hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpoint.java
(original)
+++ hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpoint.java
Thu Mar  1 06:52:35 2012
@@ -26,6 +26,7 @@ import java.io.IOException;
 import java.util.Map;
 
 import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseTestingUtility;
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.MediumTests;
@@ -200,6 +201,7 @@ public class TestCoprocessorEndpoint {
     dib.reset(dob.getData(), dob.getLength());
 
     Exec after = new Exec();
+    after.setConf(HBaseConfiguration.create());
     after.readFields(dib);
     // no error thrown
     assertEquals(after.getProtocolName(), protocolName);



Mime
View raw message