Hi,
I encounter this problem today. Luckily I find a way to reproduce this problem. I can reproduce this problem on both linux jdk1.8 and windows jdk1.8, with master branch. The key to reproducing, is to test UnseqTsFileRecoverTest (or SeqTsFileRecoverTest) AFTER first testing an integration test under the test/java/org/apache/iotdb/db/integration directory, such as IoTDBAuthorizationIT. The complete commands, to reproduce this problem, are: ``` git clone https://github.com/apache/incubator-iotdb.git cd incubator-iotdb mvn clean install -Dmaven.test.skip=true cd server mvn test -Dtest=org.apache.iotdb.db.integration.IoTDBAuthorizationIT,org.apache.iotdb.db.writelog.recover.UnseqTsFileRecoverTest ``` The error information on linux jdk1.8 and windows jdk1.8 are copied to the end of this email. It seems that something goes wrong with the common framework of these integration tests, which can lead to the NullPointerException in the following UnseqTsFileRecoverTest (or SeqTsFileRecoverTest). But I haven't found the exact cause. I might need some help. The Error information on linux jdk1.8: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- [INFO] Results: [INFO] [ERROR] Errors: [ERROR] UnseqTsFileRecoverTest.test:148 ? NullPointer [INFO] [ERROR] Tests run: 14, Failures: 0, Errors: 1, Skipped: 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 46.564 s [INFO] Finished at: 2019-12-28T23:33:48+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project iotdb-server: There are test failures. [ERROR] [ERROR] Please refer to /home/ruilei/master/incubator-iotdb/server/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The Error information on windows jdk1.8: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- [INFO] Results: [INFO] [ERROR] Errors: [ERROR] org.apache.iotdb.db.writelog.recover.UnseqTsFileRecoverTest.test(org.apache.iotdb.db.writelog.recover.UnseqTsFileRecoverTest) [ERROR] Run 1: UnseqTsFileRecoverTest.test:147 ? NullPointer [ERROR] Run 2: UnseqTsFileRecoverTest.tearDown:139 ? IO Unable to delete file: temp\test.ts [INFO] [INFO] [ERROR] Tests run: 14, Failures: 0, Errors: 1, Skipped: 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:44 min [INFO] Finished at: 2019-12-28T23:07:32+08:00 [INFO] Final Memory: 43M/445M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project iotdb-server: There are test failures. [ERROR] [ERROR] Please refer to D:\yeah\incubator-iotdb\server\target\surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Regards, Lei Rui On 10/8/2019 12:41,xiangdong Huang (Jira)<j...@apache.org> wrote: [ https://issues.apache.org/jira/browse/IOTDB-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] xiangdong Huang closed IOTDB-159. --------------------------------- Resolution: Cannot Reproduce If someone occurs the same issue, please reopen it. NullPointerException in SeqTsFileRecoverTest.java and UnseqTsFileRecoverTest ---------------------------------------------------------------------------- Key: IOTDB-159 URL: https://issues.apache.org/jira/browse/IOTDB-159 Project: Apache IoTDB Issue Type: Bug Reporter: xiangdong Huang Priority: Major Attachments: image-2019-08-13-08-49-11-242.png see [https://builds.apache.org/job/IoTDB-Pipeline/job/master/154/] h3. Stacktrace java.lang.NullPointerException at org.apache.iotdb.db.writelog.recover.UnseqTsFileRecoverTest.test(UnseqTsFileRecoverTest.java:130) h3. Standard Output INFO [2019-08-12 23:42:02,269] [main] org.apache.iotdb.db.writelog.node.ExclusiveWriteLogNode:74 - create the WAL folder {}.data/wal/testNodetest.ts INFO [2019-08-12 23:42:02,605] [main] org.apache.iotdb.tsfile.read.TsFileSequenceReader:608 - TsFile self-check cannot proceed at position 20952 after 10 chunk groups recovered, because : reach the end of the file. -- This message was sent by Atlassian Jira (v8.3.4#803005)