Improve MockDirectoryWrapper byte size tracking [LUCENE-5004]
Open
legacy-jira-priority:Minor
type:bug
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
Test failure and start of discussion at http://markmail.org/message/tyxxmg5blrczvqx3.
The problem is that MockDirectoryWrapper only checks for disk full errors in writeByte(s) although with RAMDirectory, some bytes only get accounted upon flush and seek (see MockDirectoryWrapper.getRecomputedActualSizeInBytes and call sites of RAMOutputStream.setFileLength).
---
Migrated from [LUCENE-5004](https://issues.apache.org/jira/browse/LUCENE-5004) by Adrien Grand (@jpountz), updated May 18 2013
Contributor guide
Assessment
This issue has not been assessed yet.