hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1295430 - in /hbase/branches/0.92: CHANGES.txt src/main/java/org/apache/hadoop/hbase/client/coprocessor/Exec.java src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpoint.java
Date Thu, 01 Mar 2012 06:51:37 GMT
Author: stack
Date: Thu Mar  1 06:51:36 2012
New Revision: 1295430

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

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

Modified: hbase/branches/0.92/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/CHANGES.txt?rev=1295430&r1=1295429&r2=1295430&view=diff
==============================================================================
--- hbase/branches/0.92/CHANGES.txt (original)
+++ hbase/branches/0.92/CHANGES.txt Thu Mar  1 06:51:36 2012
@@ -51,6 +51,8 @@ Release 0.92.1 - Unreleased
    HBASE-5481  Uncaught UnknownHostException prevents HBase from starting
                (Benoît Sigoure)
    HBASE-5477  Cannot build RPM for hbase-0.92.0 (Benjamin Lee)
+   HBASE-5491  Remove HBaseConfiguration.create() call from coprocessor.Exec class
+               (Honghua Zhu)
  
  
   IMPROVEMENTS

Modified: hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/client/coprocessor/Exec.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/client/coprocessor/Exec.java?rev=1295430&r1=1295429&r2=1295430&view=diff
==============================================================================
--- hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/client/coprocessor/Exec.java
(original)
+++ hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/client/coprocessor/Exec.java
Thu Mar  1 06:51:36 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.92/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpoint.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpoint.java?rev=1295430&r1=1295429&r2=1295430&view=diff
==============================================================================
--- hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpoint.java
(original)
+++ hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpoint.java
Thu Mar  1 06:51:36 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.MiniHBaseCluster;
@@ -195,6 +196,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