HBASE-3036 avro tests failing up on hudson (pass locally) -- trying something, passing Configuration to HBaseImpl
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1001062 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d4e9b8f4d9
commit
e58ebc4830
|
@ -125,7 +125,11 @@ public class AvroServer {
|
|||
* @throws IOException
|
||||
*/
|
||||
HBaseImpl() throws IOException {
|
||||
conf = HBaseConfiguration.create();
|
||||
this(HBaseConfiguration.create());
|
||||
}
|
||||
|
||||
HBaseImpl(final Configuration c) throws IOException {
|
||||
conf = c;
|
||||
admin = new HBaseAdmin(conf);
|
||||
htablePool = new HTablePool(conf, 10);
|
||||
scannerMap = new HashMap<Integer, ResultScanner>();
|
||||
|
|
|
@ -2,7 +2,8 @@ package org.apache.hadoop.hbase.avro.generated;
|
|||
|
||||
@SuppressWarnings("all")
|
||||
public class AIOError extends org.apache.avro.specific.SpecificExceptionBase implements org.apache.avro.specific.SpecificRecord {
|
||||
public static final org.apache.avro.Schema SCHEMA$ = org.apache.avro.Schema.parse("{\"type\":\"error\",\"name\":\"AIOError\",\"namespace\":\"org.apache.hadoop.hbase.avro.generated\",\"fields\":[{\"name\":\"message\",\"type\":\"string\"}]}");
|
||||
public static final org.apache.avro.Schema SCHEMA$ =
|
||||
org.apache.avro.Schema.parse("{\"type\":\"error\",\"name\":\"AIOError\",\"namespace\":\"org.apache.hadoop.hbase.avro.generated\",\"fields\":[{\"name\":\"message\",\"type\":\"string\"}]}");
|
||||
public org.apache.avro.util.Utf8 message;
|
||||
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
|
||||
public java.lang.Object get(int field$) {
|
||||
|
|
|
@ -96,7 +96,8 @@ public class TestAvroServer {
|
|||
*/
|
||||
@Test (timeout=300000)
|
||||
public void testTableAdminAndMetadata() throws Exception {
|
||||
AvroServer.HBaseImpl impl = new AvroServer.HBaseImpl();
|
||||
AvroServer.HBaseImpl impl =
|
||||
new AvroServer.HBaseImpl(TEST_UTIL.getConfiguration());
|
||||
|
||||
assertEquals(impl.listTables().size(), 0);
|
||||
|
||||
|
@ -140,7 +141,8 @@ public class TestAvroServer {
|
|||
*/
|
||||
@Test
|
||||
public void testFamilyAdminAndMetadata() throws Exception {
|
||||
AvroServer.HBaseImpl impl = new AvroServer.HBaseImpl();
|
||||
AvroServer.HBaseImpl impl =
|
||||
new AvroServer.HBaseImpl(TEST_UTIL.getConfiguration());
|
||||
|
||||
ATableDescriptor tableA = new ATableDescriptor();
|
||||
tableA.name = tableAname;
|
||||
|
@ -174,7 +176,8 @@ public class TestAvroServer {
|
|||
*/
|
||||
@Test
|
||||
public void testDML() throws Exception {
|
||||
AvroServer.HBaseImpl impl = new AvroServer.HBaseImpl();
|
||||
AvroServer.HBaseImpl impl =
|
||||
new AvroServer.HBaseImpl(TEST_UTIL.getConfiguration());
|
||||
|
||||
ATableDescriptor tableA = new ATableDescriptor();
|
||||
tableA.name = tableAname;
|
||||
|
|
Loading…
Reference in New Issue