我正在尝试从源代码构建cassandra二进制文件,当我尝试编译单元测试用例时,其中一个失败了。我用Java 8构建cassandra-2.1.4。 这些是我运行的命令:
ant -Dfile.encoding="UTF-8"
ant test
ant artifacts
失败详情:
[junit] Testsuite: org.apache.cassandra.tools.SSTableExportTest
[junit] Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.903 sec
[junit]
[junit] ------------- Standard Output ---------------
[junit] WARN 17:48:26 No host ID found, created eeaaa375-22f0-4a4c-845a-31decd240218 (Note: This should happen exactly once per node).
[junit] WARN 17:48:26 No host ID found, created eeaaa375-22f0-4a4c-845a-31decd240218 (Note: This should happen exactly once per node).
[junit] Importing 1 keys...
[junit] 1 keys imported successfully.
[junit] ------------- ---------------- ---------------
[junit] Testcase: testExportColumnsWithMetadata(org.apache.cassandra.tools.SSTableExportTest): FAILED
[junit] unexpected serialization format for topLevelDeletion expected:<{"[markedForDeleteAt":0,"localDeletionTime]":0}> but was:<{"[localDeletionTime":0,"markedForDeleteAt]":0}>
[junit] junit.framework.AssertionFailedError: unexpected serialization format for topLevelDeletion expected:<{"[markedForDeleteAt":0,"localDeletionTime]":0}> but was:<{"[localDeletionTime":0,"markedForDeleteAt]":0}>
[junit] at org.apache.cassandra.tools.SSTableExportTest.testExportColumnsWithMetadata(SSTableExportTest.java:298)
[junit]
[junit]
[junit] Test org.apache.cassandra.tools.SSTableExportTest FAILED
[junit] Testsuite: org.apache.cassandra.tools.SSTableImportTest
[junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.759 sec
答案 0 :(得分:3)
这是一个已知问题,并已在Apache Cassandra的trunk(将成为2.2)分支中得到修复。 https://issues.apache.org/jira/browse/CASSANDRA-9065