public void done() {
      done = true;
      synchronized (this) {
        interrupt();
      }
    }
Block calling thread until this instance of PutThread has put at least one row.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java