HBASE-7926 SmallTests pollute the META descriptor

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1449782 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
mbertozzi 2013-02-25 17:28:00 +00:00
parent 97530e300d
commit 4bfa3e27b7
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,8 @@ import org.junit.Test;
public class TestHColumnDescriptor { public class TestHColumnDescriptor {
@Test @Test
public void testPb() throws DeserializationException { public void testPb() throws DeserializationException {
HColumnDescriptor hcd = HTableDescriptor.META_TABLEDESC.getColumnFamilies()[0]; HColumnDescriptor hcd = new HColumnDescriptor(
HTableDescriptor.META_TABLEDESC.getColumnFamilies()[0]);
final int v = 123; final int v = 123;
hcd.setBlocksize(v); hcd.setBlocksize(v);
hcd.setTimeToLive(v); hcd.setTimeToLive(v);

View File

@ -42,7 +42,7 @@ public class TestHTableDescriptor {
@Test @Test
public void testPb() throws DeserializationException, IOException { public void testPb() throws DeserializationException, IOException {
HTableDescriptor htd = HTableDescriptor.META_TABLEDESC; HTableDescriptor htd = new HTableDescriptor(HTableDescriptor.META_TABLEDESC);
final int v = 123; final int v = 123;
htd.setMaxFileSize(v); htd.setMaxFileSize(v);
htd.setDeferredLogFlush(true); htd.setDeferredLogFlush(true);