HashDataInc/Gopherwood

[ERROR]1. OssBlockWorker::writeBlock should check the endOfLocalSpace. 2. open too many files error

neuyilan opened this issue · 3 comments

  1. when evict block to oss, should check whether the evicted block is the last bucket of the local space, if it is the last bucket of the local space, it size may not equal BUCKET_SIZE;

  2. when open->write->close the file many times, the gopherwood may throw the error that "too many files open", maybe some file descriptor is not closed;

fixed

  1. OssBlockWorker::writeBlock should check the endOfLocalSpace

The previous fix does not work for this bug.