incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

[Feature] More Functional Test Scenarios

Open shirleyStorage opened this issue 2 years ago • 2 comments

Feature Description (功能描述)

Do we have specific plans for various functional tests?

I think here are several scenarios in which we can add test cases for hstore:

  • [ ] 1. Transfer leader
  • [ ] 2. Split, merge region
  • [ ] 3. Read, write, delete data
  • [ ] 4. Backup, restore
  • [ ] 5. Stop all nodes and restart all nodes
  • [ ] 6. Restart all or part of the components repeatedly
  • [ ] 7. Constantly scaling up and down the number of nodes.

For these scenarios, we need to check the following items:

  1. There is no service that is irrecoverable
  2. Data consistency
  3. Data accuracy
  4. Whether the result of each operation meets expectations

shirleyStorage avatar Aug 31 '24 15:08 shirleyStorage

Good suggestion, recently we are trying to introduce the MiniCluster module in hugegraph (could refer to #2615). This module is used to simulate a multi-node pd, store, server environment for some integration testing, such as the stop and restart node mentioned here.

After the integration testing framework is built, it becomes more convenient to add the above test scenarios.

VGalaxies avatar Aug 31 '24 15:08 VGalaxies

Good suggestion, recently we are trying to introduce the MiniCluster module in hugegraph (could refer to #2615). This module is used to simulate a multi-node pd, store, server environment for some integration testing, such as the stop and restart node mentioned here.

After the integration testing framework is built, it becomes more convenient to add the above test scenarios.

I saw the issue https://github.com/apache/incubator-hugegraph/pull/2615 . It's a very good foundation implementation! We can build more test cases based on this MiniCluster, and it's perfect for new contributor to gain a deeper understanding of hstore.

shirleyStorage avatar Sep 01 '24 05:09 shirleyStorage