Fix TestHRegion.testWritesWhileScanning to not be flaky

Review Request #79 - Created May 23, 2010 and submitted

Todd Lipcon
old-hbase
HBASE-2589
hbase
ryanobjc
Test wasn't waiting until the put thread had started before it started reading, so would often fail having read 0 columns.
Ran it a few times on my box locally, seems to pass now where it used to fail most of the time.
  1. 
      
  2. should probably use the accessor here.
  3. do we get any meaningful sleep here? I have not really seen Thread.yield in a long time
  4. 
      
Review request changed

Change Summary:

Switched to a short Thread.sleep instead.
Also got rid of the accessor, since I'm only accessing that variable internally.

Diff:

Revision 2 (+25 -8)

Show changes

  1. 
      
  2. 
      
Loading...