背景:
Windows10 构建 rocketMq最新版本(4.9.2),在执行DLedgerCommitlogTest测试用例时报错:
-------------------------------------------------------------------------------
Test set: org.apache.rocketmq.store.dledger.DLedgerCommitlogTest
-------------------------------------------------------------------------------
Tests run: 7, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 43.353 sec <<< FAILURE! - in org.apache.rocketmq.store.dledger.DLedgerCommitlogTest
testTruncateCQ(org.apache.rocketmq.store.dledger.DLedgerCommitlogTest) Time elapsed: 6.039 sec <<< FAILURE!
java.lang.AssertionError: expected:<20> but was:<24>
at org.apache.rocketmq.store.dledger.DLedgerCommitlogTest.testTruncateCQ(DLedgerCommitlogTest.java:76)
问题探究
根据问题描述对应代码行,发现与commitLog的删除有关。理论上应该正常删除,但是没有删除,导致断言失败。 github上对应issue: https://github.com/apache/rocketmq/issues/2993
问题解决思路
待更新
|