HBASE-4621 TestAvroServer fails quite often intermittently

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1186531 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-10-19 22:05:37 +00:00
parent 8ef88d0c1d
commit 9dce8043bd
2 changed files with 4 additions and 1 deletions

View File

@ -370,6 +370,7 @@ Release 0.92.0 - Unreleased
spammed when too many store files
HBASE-4620 I broke the build when I submitted HBASE-3581 (Send length
of the rpc response)
HBASE-4621 TestAvroServer fails quite often intermittently (Akash Ashok)
TESTS
HBASE-4450 test for number of blocks read: to serve as baseline for expected

View File

@ -122,10 +122,12 @@ public class TestAvroServer {
impl.disableTable(tableAname);
assertFalse(impl.isTableEnabled(tableAname));
long oldMaxFileSize = impl.describeTable(tableAname).maxFileSize;
tableA.maxFileSize = 123456L;
impl.modifyTable(tableAname, tableA);
// It can take a while for the change to take effect. Wait here a while.
while(impl.describeTable(tableAname) == null) {
while(impl.describeTable(tableAname).maxFileSize == oldMaxFileSize) {
Threads.sleep(100);
}