incubator-hugegraph
incubator-hugegraph copied to clipboard
[Bug(pd-store)] hstore backend core tests failure
subtask of #2265, see https://github.com/apache/incubator-hugegraph/actions/runs/7531623523/job/20500585647?pr=2414
🤖
Based on the provided context, it appears that the hstore core tests are failing due to several exceptions being thrown. These exceptions are related to the creation, scheduling, and deletion of tasks in the HugeGraph database.
The specific errors are as follows:
- IllegalArgumentException: Thrown when trying to delete an incomplete task.
- IllegalArgumentException: Thrown when a HugeTask is created with a null id.
- IllegalArgumentException: Thrown when a HugeTask is created with an id of invalid type.
- NullPointerException: Thrown when a HugeTask is created with a null callable.
- IllegalStateException: Thrown when a HugeTask is scheduled without setting a task type.
- IllegalStateException: Thrown when a HugeTask is scheduled without setting a task name.
- NotFoundException: Thrown when trying to access a task that has been deleted.
These errors are found in the testTask
and testTaskWithFailure
methods in the TaskCoreTest.java file.
Unfortunately, without more information, it's difficult to determine the exact cause of these test failures. The pull request #2414 and its potential impact on the hstore core tests, as well as the interaction between the pd-store
and the hstore
core tests, are not clear from the provided context.
If you could provide more details about the changes made in the pull request #2414, or any known issues or bugs in the pd-store
that could have caused these test failures, it would be helpful in diagnosing the problem.
For more information about the purpose of the hstore core tests and the scenarios they cover, you can refer to the TaskCoreTest.java file in the incubator-hugegraph repository.
I hope this information is helpful. If you have any further questions or need more assistance, please don't hesitate to ask.
Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
I will try to catch it
close by #2424 and #2431
NOTE: the core tests of hstore expect the following tests to fail:
[INFO] Results:
[INFO]
Error: Failures:
Error: EdgeCoreTest.testScanEdgeInPaging:5214 expected:<18> but was:<0>
Error: MultiGraphsTest.testCopySchemaWithMultiGraphs:121
Error: VertexCoreTest.testAddOlapRangeAndOlapSecondaryProperties:2491 expected:<1> but was:<0>
Error: VertexCoreTest.testAddOlapRangeProperties:2344 expected:<1> but was:<0>
Error: VertexCoreTest.testAddOlapSecondaryProperties:2254 expected:<1> but was:<0>
Error: VertexCoreTest.testQueryOlapRangeAndRegularSecondaryProperties:2638 expected:<1> but was:<0>
Error: VertexCoreTest.testQueryOlapWithUpdates:2725 expected:<1> but was:<0>
Error: VertexCoreTest.testScanVertexInPaging:7606 expected:<10> but was:<1>
Error: Errors:
Error: EdgeCoreTest.testQueryOutEdgesOfVertexBySortkeyWithMoreFields:3912 » HgStoreClient
Error: EdgeCoreTest.testQueryOutEdgesOfVertexBySortkeyWithMoreFieldsInPage:4131 » HgStoreClient
Error: EdgeCoreTest.testQueryOutEdgesOfVertexBySortkeyWithPrefix:3704 » HgStoreClient
Error: EdgeCoreTest.testQueryOutEdgesOfVertexBySortkeyWithPrefixInPage:3800 » HgStoreClient
Error: EdgeCoreTest.testQueryOutEdgesOfVertexBySortkeyWithRange:3607 » HgStoreClient ...
Error: MultiGraphsTest.testCreateGraphWithSameNameDifferentBackends:289->openGraphWithBackend:381 » Runtime
Error: RamTableTest.testReloadAndQuery:112 » Huge Failed to load ramtable
Error: RamTableTest.testReloadAndQueryWithBigVertex:369 » Huge Failed to load ramtabl...
Error: RamTableTest.testReloadAndQueryWithMultiEdges:239 » Huge Failed to load ramtab...
Error: RamTableTest.testReloadAndQueryWithProperty:444 » Huge Failed to load ramtable
Error: RamTableTest.testReloadFromFileAndQuery:159 » Huge Failed to load ramtable
Error: VertexCoreTest.testQueryByPropertyInPageWithLimitGtPageSize:8337 » IllegalArgument
Error: VertexCoreTest.testQueryByRangeIndexInPage:8568 » IllegalArgument Undefined in...
Error: VertexCoreTest.testQueryBySingleRangePropertyInPage:8423 » IllegalArgument Und...
[INFO]
Error: Tests run: 730, Failures: 8, Errors: 14, Skipped: 13
- Clearing the cache before each test allows all tests in
MultiGraphsTest
to pass, but other tests fail extensively. - The NPE tests in
HgStoreClient
occur because theHugeGraph
parameter passed during the construction of HugeVertex or HugeEdge is null (the store module cannot obtain the graph object instance). - Tests related to OLAP in
VertexCoreTest
: Not adapted yet. - Tests related to page in
VertexCoreTest
andEdgeCoreTest
: Inconsistency in the definition ofposition
between RocksDB scan iterator and Hstore. - Some
RamTableTest
cases: The ramtable feature is not supported by the hstore backend.
Temporarily ignore the above failures:
// FIXME: skip this test for hstore
Assume.assumeTrue("skip this test for hstore",
Objects.equals("hstore", System.getProperty("backend")));