Another attempt at fixing TestFSTableDescriptors

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1138658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-06-22 22:07:35 +00:00
parent bf9654474c
commit e020898266
1 changed files with 2 additions and 1 deletions

View File

@ -97,13 +97,14 @@ public class TestFSTableDescriptors {
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
assertTrue(htds.get(Bytes.toBytes(name + i)) != null); assertTrue(htds.get(Bytes.toBytes(name + i)) != null);
} }
// Wait a while so mod time we write is for sure different.
Thread.sleep(1000);
// Update the table infos // Update the table infos
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
HTableDescriptor htd = new HTableDescriptor(name + i); HTableDescriptor htd = new HTableDescriptor(name + i);
htd.addFamily(new HColumnDescriptor("" + i)); htd.addFamily(new HColumnDescriptor("" + i));
FSUtils.updateHTableDescriptor(fs, rootdir, htd); FSUtils.updateHTableDescriptor(fs, rootdir, htd);
} }
Thread.sleep(2000);
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
assertTrue(htds.get(Bytes.toBytes(name + i)) != null); assertTrue(htds.get(Bytes.toBytes(name + i)) != null);
} }