if (!isPushingFinished() && Status.READY == status) {
// only one thread will set to true and throw exception. the intent is that the segment
// manager thread that catches exception should check for things like (should i page to disk, etc)
setPushingFinished(true);
throw new FpqPushFinished();
}
}
finally {
metaDataLock.writeLock().unlock();
}