public Status TEST_CompactMemTable() {
		// NULL batch means just wait for earlier writes to be done
		Status s = Write(new WriteOptions(), null);
		if (s.ok()) {
			// Wait until the compaction completes
			mutex_.lock();
			try {
				while (imm_ != null && bg_error_.ok()) {
					bg_cv_.await();
				}
				if (imm_ != null) {
					s = bg_error_;
				}

			} catch (InterruptedException e) {
				e.printStackTrace();
			} finally {
				mutex_.unlock();
			}
		}
		return s;
	}