hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject svn commit: r1449782 - in /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase: TestHColumnDescriptor.java TestHTableDescriptor.java
Date Mon, 25 Feb 2013 17:28:00 GMT
Author: mbertozzi
Date: Mon Feb 25 17:28:00 2013
New Revision: 1449782

URL: http://svn.apache.org/r1449782
Log:
HBASE-7926 SmallTests pollute the META descriptor

Modified:
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestHColumnDescriptor.java
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestHTableDescriptor.java

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestHColumnDescriptor.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestHColumnDescriptor.java?rev=1449782&r1=1449781&r2=1449782&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestHColumnDescriptor.java
(original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestHColumnDescriptor.java
Mon Feb 25 17:28:00 2013
@@ -34,7 +34,8 @@ import org.junit.Test;
 public class TestHColumnDescriptor {
   @Test
   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;
     hcd.setBlocksize(v);
     hcd.setTimeToLive(v);

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestHTableDescriptor.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestHTableDescriptor.java?rev=1449782&r1=1449781&r2=1449782&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestHTableDescriptor.java
(original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestHTableDescriptor.java
Mon Feb 25 17:28:00 2013
@@ -42,7 +42,7 @@ public class TestHTableDescriptor {
 
   @Test
   public void testPb() throws DeserializationException, IOException {
-    HTableDescriptor htd = HTableDescriptor.META_TABLEDESC;
+    HTableDescriptor htd = new HTableDescriptor(HTableDescriptor.META_TABLEDESC);
     final int v = 123;
     htd.setMaxFileSize(v);
     htd.setDeferredLogFlush(true);



Mime
View raw message