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:
parent
bf9654474c
commit
e020898266
|
@ -97,13 +97,14 @@ public class TestFSTableDescriptors {
|
|||
for (int i = 0; i < count; i++) {
|
||||
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
|
||||
for (int i = 0; i < count; i++) {
|
||||
HTableDescriptor htd = new HTableDescriptor(name + i);
|
||||
htd.addFamily(new HColumnDescriptor("" + i));
|
||||
FSUtils.updateHTableDescriptor(fs, rootdir, htd);
|
||||
}
|
||||
Thread.sleep(2000);
|
||||
for (int i = 0; i < count; i++) {
|
||||
assertTrue(htds.get(Bytes.toBytes(name + i)) != null);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue