Index: src/test/org/apache/hadoop/hbase/thrift/TestThriftServer.java =================================================================== --- src/test/org/apache/hadoop/hbase/thrift/TestThriftServer.java (revision 721904) +++ src/test/org/apache/hadoop/hbase/thrift/TestThriftServer.java (working copy) @@ -189,6 +189,10 @@ long time1 = System.currentTimeMillis(); handler.mutateRowTs(tableAname, rowAname, getMutations(), time1); + // Sleep to assure that 'time1' and 'time2' will be different even with a + // coarse grained system timer. + Thread.sleep(1000); + // Apply timestamped BatchMutations for rowA and rowB long time2 = System.currentTimeMillis(); handler.mutateRowsTs(tableAname, getBatchMutations(), time2); @@ -253,6 +257,10 @@ long time1 = System.currentTimeMillis(); handler.mutateRowTs(tableAname, rowAname, getMutations(), time1); + // Sleep to assure that 'time1' and 'time2' will be different even with a + // coarse grained system timer. + Thread.sleep(1000); + // Apply timestamped BatchMutations for rowA and rowB long time2 = System.currentTimeMillis(); handler.mutateRowsTs(tableAname, getBatchMutations(), time2);