<commit_before>package com.splicemachine.derby.utils;

import com.splicemachine.constants.SpliceConstants;
import com.splicemachine.derby.test.framework.SpliceWatcher;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.client.HBaseAdmin;
import org.junit.ClassRule;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestRule;

import java.sql.CallableStatement;
import java.util.Arrays;

/**
 * @author <NAME>
 * Date: 3/19/14
 */
@Ignore("-sf- This can take forever, and it doesn't really test anything. Until it does, leave it ignored")
public class VacuumIT {
		private static final SpliceWatcher spliceClassWatcher = new SpliceWatcher();
		@ClassRule
		public static TestRule classRule = spliceClassWatcher;

		@Rule
		public SpliceWatcher methodRule = new SpliceWatcher();

		@Test
		public void testVacuumDoesNotBreakStuff() throws Exception {
				/*
				 * Simple test to make sure that Vacuum works and doesn't delete anything <1168.
				 */
				HBaseAdmin admin = new HBaseAdmin(SpliceConstants.config);
				try{
						HTableDescriptor[] beforeTables = admin.listTables();
						CallableStatement callableStatement = methodRule.prepareCall("call SYSCS_UTIL.VACUUM()");
						callableStatement.execute();
						HTableDescriptor[] afterTables = admin.listTables();
						//TODO -sf- make this a real test
						System.out.println(Arrays.toString(beforeTables));
						System.out.println(Arrays.toString(afterTables));
				}finally{
						admin.close();
				}
		}
}
<commit_msg>DB-1861: Re-enabling the VacuumIT to ensure that at least some tables get vacuumed<commit_after>package com.splicemachine.derby.utils;

import com.splicemachine.constants.SpliceConstants;
import com.splicemachine.derby.test.framework.SpliceWatcher;
import com.splicemachine.test.SerialTest;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.client.HBaseAdmin;
import org.junit.ClassRule;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.rules.TestRule;

import java.sql.CallableStatement;
import java.util.Arrays;

/**
 * @author <NAME>
 * Date: 3/19/14
 */
//@Ignore("-sf- This can take forever, and it doesn't really test anything. Until it does, leave it ignored")
@Category(SerialTest.class)
public class VacuumIT {
		private static final SpliceWatcher spliceClassWatcher = new SpliceWatcher();
		@ClassRule
		public static TestRule classRule = spliceClassWatcher;

		@Rule
		public SpliceWatcher methodRule = new SpliceWatcher();

		@Test
		public void testVacuumDoesNotBreakStuff() throws Exception {
				/*
				 * Simple test to make sure that Vacuum works and doesn't delete anything <1168.
				 */
				HBaseAdmin admin = new HBaseAdmin(SpliceConstants.config);
				try{
						HTableDescriptor[] beforeTables = admin.listTables();
						CallableStatement callableStatement = methodRule.prepareCall("call SYSCS_UTIL.VACUUM()");
						callableStatement.execute();
						HTableDescriptor[] afterTables = admin.listTables();
						//TODO -sf- make this a real test
						System.out.println(Arrays.toString(beforeTables));
						System.out.println(Arrays.toString(afterTables));
				}finally{
						admin.close();
				}
		}
}

{'fraction_non_alphanumeric': 0.10344827586206896, 'fraction_numerical': 0.006654567453115548, 'mean_word_length': 4.316720257234727, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '535592', 'n_tokens_mistral': 1173, 'n_tokens_neox': 996, 'n_words': 243}