private void simulateFileScenario01() throws IllegalPathException {
    InsertTabletNode insertTabletNode;
    InsertRowNode insertRowNode;
    InsertRowsNode insertRowsNode;
    // _0-0-1.wal
    insertRowNode = getInsertRowNode(devicePath);
    insertRowNode.setSearchIndex(1);
    walNode.log(0, insertRowNode); // 1
    insertTabletNode = getInsertTabletNode(devicePath, new long[] {2});
    walNode.log(
        0,
        insertTabletNode,
        Collections.singletonList(new int[] {0, insertTabletNode.getRowCount()})); // -1
    walNode.rollWALFile();
    // _1-1-1.wal
    insertRowsNode = getInsertRowsNode(devicePath);
    insertRowsNode.setSearchIndex(2);
    walNode.log(0, insertRowsNode); // 2
    walNode.log(0, insertRowsNode); // 2
    walNode.log(0, insertRowsNode); // 2
    walNode.rollWALFile();
    // _2-2-1.wal
    insertRowNode = getInsertRowNode(devicePath);
    insertRowNode.setSearchIndex(3);
    walNode.log(0, insertRowNode); // 3
    walNode.log(0, insertRowNode); // 3
    walNode.rollWALFile();
    // _3-3-1.wal
    insertRowNode.setTargetPath(new PartialPath(devicePath + "test"));
    walNode.log(0, insertRowNode); // 3
    insertTabletNode = getInsertTabletNode(devicePath, new long[] {4});
    insertTabletNode.setSearchIndex(4);
    walNode.log(
        0,
        insertTabletNode,
        Collections.singletonList(new int[] {0, insertTabletNode.getRowCount()})); // 4
    walNode.rollWALFile();
    // _4-4-1.wal
    walNode.log(
        0,
        insertTabletNode,
        Collections.singletonList(new int[] {0, insertTabletNode.getRowCount()})); // 4
    walNode.rollWALFile();
    // _5-4-1.wal
    walNode.log(
        0,
        insertTabletNode,
        Collections.singletonList(new int[] {0, insertTabletNode.getRowCount()})); // 4
    walNode.log(
        0,
        insertTabletNode,
        Collections.singletonList(new int[] {0, insertTabletNode.getRowCount()})); // 4
    insertTabletNode = getInsertTabletNode(devicePath, new long[] {5});
    insertTabletNode.setSearchIndex(5);
    walNode.log(
        0,
        insertTabletNode,
        Collections.singletonList(new int[] {0, insertTabletNode.getRowCount()})); // 5
    walNode.rollWALFile();
    // _6-5-1.wal
    insertRowNode = getInsertRowNode(devicePath);
    insertRowNode.setSearchIndex(6);
    walNode.log(0, insertRowNode); // 6
  }
Generate wal files as below: <br>
_0-0-1.wal: 1,-1 <br>
_1-1-1.wal: 2,2,2 <br>
_2-2-1.wal: 3,3 <br>
_3-3-1.wal: 3,4 <br>
_4-4-1.wal: 4 <br>
_5-4-1.wal: 4,4,5 <br>
_6-5-1.wal: 6 <br>
1 - InsertRowNode, 2 - InsertRowsOfOneDeviceNode, 3 - InsertRowsNode, 4 -
InsertMultiTabletsNode, 5 - InsertTabletNode, 6 - InsertRowNode
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/wal/node/ConsensusReqReaderTest.java