TranslogTests.testWithRandomException ignored a possible simulated OOM when trimming files
This commit is contained in:
parent
cfb5f6a5a6
commit
f34136eda4
|
@ -2117,6 +2117,8 @@ public class TranslogTests extends ESTestCase {
|
||||||
// fair enough
|
// fair enough
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
assertEquals(ex.getMessage(), "__FAKE__ no space left on device");
|
assertEquals(ex.getMessage(), "__FAKE__ no space left on device");
|
||||||
|
} catch (RuntimeException ex) {
|
||||||
|
assertEquals(ex.getMessage(), "simulated");
|
||||||
} finally {
|
} finally {
|
||||||
Checkpoint checkpoint = Translog.readCheckpoint(config.getTranslogPath());
|
Checkpoint checkpoint = Translog.readCheckpoint(config.getTranslogPath());
|
||||||
if (checkpoint.numOps == unsynced.size() + syncedDocs.size()) {
|
if (checkpoint.numOps == unsynced.size() + syncedDocs.size()) {
|
||||||
|
|
Loading…
Reference in New Issue