apache / apache/lucene

Improve MockDirectoryWrapper byte size tracking [LUCENE-5004]

Open
#6,068 0 comments 0 reactions 1 assignee Claimed by @jpountz View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.