From 9dce8043bdd8837402d7e629e29e6577368f9142 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Wed, 19 Oct 2011 22:05:37 +0000 Subject: [PATCH] HBASE-4621 TestAvroServer fails quite often intermittently git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1186531 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + .../java/org/apache/hadoop/hbase/avro/TestAvroServer.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 825f4baff7e..837e93b30d9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/src/test/java/org/apache/hadoop/hbase/avro/TestAvroServer.java b/src/test/java/org/apache/hadoop/hbase/avro/TestAvroServer.java index 23b91e12d0f..06427ab6587 100644 --- a/src/test/java/org/apache/hadoop/hbase/avro/TestAvroServer.java +++ b/src/test/java/org/apache/hadoop/hbase/avro/TestAvroServer.java @@ -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); }