Skip to content

Commit 467c7a5

Browse files
committed
Fix duplicate WAL metadata test helper
1 parent 2322289 commit 467c7a5

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

‎iotdb-core/datanode/src/test/java/org/apache/iotdb/db/subscription/broker/consensus/ConsensusPrefetchingQueueTest.java‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2946,20 +2946,6 @@ private static IndexedConsensusRequest createRequest(final long searchIndex) {
29462946
.setNodeId(7);
29472947
}
29482948

2949-
private static void writeWalMetadata(
2950-
final File walFile,
2951-
final long searchIndex,
2952-
final long localSeq,
2953-
final long physicalTime,
2954-
final int writerNodeId)
2955-
throws IOException {
2956-
final WALMetaData metadata = new WALMetaData();
2957-
metadata.add(1, searchIndex, 1L, physicalTime, writerNodeId, localSeq);
2958-
try (WALWriter writer = new WALWriter(walFile, WALFileVersion.V3)) {
2959-
writer.write(ByteBuffer.wrap(new byte[] {0}), metadata);
2960-
}
2961-
}
2962-
29632949
private static IndexedConsensusRequest createRequest(
29642950
final long searchIndex,
29652951
final long localSeq,

0 commit comments

Comments
 (0)