Source:
<code>public void testLotsOfCollisions() throws Exception { Random rand = new Random(45734985); int[] nums = new int[1000]; int[] expectedCounts = new int[5]; for (int i = 0; i < nums.length; i++) { nums[i] = rand.nextInt(expectedCounts.length); expectedCounts[nums[i]]++; } try (LoaderExecutor loader = client.newLoaderExecutor()) { for (int num : nums) { loader.execute(new NumLoader(num)); } } miniFluo.waitForObservers(); try (TypedSnapshot snapshot = typeLayer.wrap(client.newSnapshot())) { for (int i = 0; i < expectedCounts.length; i++) { <START> Assert.assertEquals(expectedCounts[i], snapshot.get().row(i).fam("stat").qual("total").toInteger(-1)); <END> } Assert.assertEquals(1000, snapshot.get().row("all").fam("stat").qual("total").toInteger(-1)); } long oldestTS = ZookeeperUtil.getOldestTimestamp(config.getZookeepers()); while (true) { UtilWaitThread.sleep(300); long tmp = ZookeeperUtil.getOldestTimestamp(config.getZookeepers()); if (oldestTS == tmp) { break; } oldestTS = tmp; } conn.tableOperations().compact(getCurTableName(), null, null, true, true); Scanner scanner = conn.createScanner(getCurTableName(), Authorizations.EMPTY); HashSet<String> rowCols = new HashSet<>(); for (Entry<Key,Value> entry : scanner) { Key k = entry.getKey(); String rowCol = k.getRow() + ":" + k.getColumnFamily() + ":" + k.getColumnQualifier() + ":" + String.format("%x", k.getTimestamp() & ColumnConstants.PREFIX_MASK); Assert.assertFalse("Duplicate row col " + rowCol, rowCols.contains(rowCol)); rowCols.add(rowCol); } }</code><technical_language>This is a cool test. checking processed here</technical_language>

Target:
public void testLotsOfCollisions() throws Exception { Random rand = new Random(45734985); int[] nums = new int[1000]; int[] expectedCounts = new int[5]; for (int i = 0; i < nums.length; i++) { nums[i] = rand.nextInt(expectedCounts.length); expectedCounts[nums[i]]++; } try (LoaderExecutor loader = client.newLoaderExecutor()) { for (int num : nums) { loader.execute(new NumLoader(num)); } } miniFluo.waitForObservers(); try (TypedSnapshot snapshot = typeLayer.wrap(client.newSnapshot())) { for (int i = 0; i < expectedCounts.length; i++) { Assert.assertEquals(expectedCounts[i], snapshot.get().row(i).fam("stat").qual("total").toInteger(-1)); Assert.assertEquals(expectedCounts[i], snapshot.get().row(i).fam("stat").qual("processed").toInteger(-1)); } Assert.assertEquals(1000, snapshot.get().row("all").fam("stat").qual("total").toInteger(-1)); } long oldestTS = ZookeeperUtil.getOldestTimestamp(config.getZookeepers()); while (true) { UtilWaitThread.sleep(300); long tmp = ZookeeperUtil.getOldestTimestamp(config.getZookeepers()); if (oldestTS == tmp) { break; } oldestTS = tmp; } conn.tableOperations().compact(getCurTableName(), null, null, true, true); Scanner scanner = conn.createScanner(getCurTableName(), Authorizations.EMPTY); HashSet<String> rowCols = new HashSet<>(); for (Entry<Key,Value> entry : scanner) { Key k = entry.getKey(); String rowCol = k.getRow() + ":" + k.getColumnFamily() + ":" + k.getColumnQualifier() + ":" + String.format("%x", k.getTimestamp() & ColumnConstants.PREFIX_MASK); Assert.assertFalse("Duplicate row col " + rowCol, rowCols.contains(rowCol)); rowCols.add(rowCol); } }