HorizonNet commented on a change in pull request #1222: HBASE-23868 : Replace
usages of HColumnDescriptor(byte [] familyName)…
URL: https://github.com/apache/hbase/pull/1222#discussion_r386274592
##########
File path:
hbase-server/src/test/java/org/apache/hadoop/hbase/mob/TestMobStoreScanner.java
##########
@@ -99,14 +99,14 @@ public static void tearDownAfterClass() throws Exception {
public void setUp(long threshold, TableName tn) throws Exception {
conf = TEST_UTIL.getConfiguration();
fs = FileSystem.get(conf);
- desc = new HTableDescriptor(tn);
- hcd = new HColumnDescriptor(family);
- hcd.setMobEnabled(true);
- hcd.setMobThreshold(threshold);
- hcd.setMaxVersions(4);
- desc.addFamily(hcd);
+ tableDescriptor = new TableDescriptorBuilder.ModifyableTableDescriptor(tn);
+ familyDescriptor = new
ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor(family);
+ familyDescriptor.setMobEnabled(true);
Review comment:
Use the builder.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services