fix issue 454 and 455 (#456)

This commit is contained in:
XuYi 2018-11-20 20:08:04 +08:00 committed by GitHub
parent 439996194e
commit 688e5ff96d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,8 @@ package cn.edu.tsinghua.iotdb.queryV2.component;
import cn.edu.tsinghua.iotdb.queryV2.SimpleFileWriter;
import cn.edu.tsinghua.iotdb.queryV2.engine.reader.component.SegmentInputStream;
import cn.edu.tsinghua.iotdb.queryV2.engine.reader.component.SegmentInputStreamWithMMap;
import sun.nio.ch.DirectBuffer;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
@ -47,6 +49,7 @@ public class SegmentInputStreamWithMMapTest {
testOneSegmentWithMMap(buffer1, 20, 1000);
testOneSegmentWithMMap(buffer1, 30, 1000);
testOneSegmentWithMMap(buffer1, 1000, 1000);
((DirectBuffer) buffer1).cleaner().clean();
randomAccessFile.close();
}

View File

@ -232,6 +232,7 @@
<executions>
<execution>
<id>check</id>
<!-- skip when executing 'mvn clean test' -->
<!-- <phase>test</phase> -->
<goals>
<goal>cobertura</goal>