HBASE-5491 Remove HBaseConfiguration.create() call from coprocessor.Exec class

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1295429 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-03-01 06:49:59 +00:00
parent 5bc6e3e4ec
commit 8eab15acf5
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -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);