@Test
  public void testSyncTableIgnoreTimestampsTrue() throws Exception {
    final TableName sourceTableName = TableName.valueOf(name.getMethodName() + "_source");
    final TableName targetTableName = TableName.valueOf(name.getMethodName() + "_target");
    Path testDir = UTIL1.getDataTestDirOnTestFS(name.getMethodName());
    long current = EnvironmentEdgeManager.currentTime();
    writeTestData(UTIL1, sourceTableName, UTIL2, targetTableName, current - 1000, current);
    hashSourceTable(UTIL1, sourceTableName, testDir, "--ignoreTimestamps=true");
    Counters syncCounters = syncTables(UTIL2.getConfiguration(), sourceTableName, targetTableName,
      testDir, "--ignoreTimestamps=true", "--sourceuri=" + UTIL1.getRpcConnnectionURI());
    assertEqualTables(90, UTIL1, sourceTableName, UTIL2, targetTableName, true);

    assertEquals(50, syncCounters.findCounter(Counter.ROWSWITHDIFFS).getValue());
    assertEquals(10, syncCounters.findCounter(Counter.SOURCEMISSINGROWS).getValue());
    assertEquals(10, syncCounters.findCounter(Counter.TARGETMISSINGROWS).getValue());
    assertEquals(30, syncCounters.findCounter(Counter.SOURCEMISSINGCELLS).getValue());
    assertEquals(30, syncCounters.findCounter(Counter.TARGETMISSINGCELLS).getValue());
    assertEquals(20, syncCounters.findCounter(Counter.DIFFERENTCELLVALUES).getValue());

    UTIL1.deleteTable(sourceTableName);
    UTIL2.deleteTable(targetTableName);
  }
Basic test for the SyncTable M/R tool
hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestSyncTable.java