MemoryRecords records(long offset, String... records) {
        return MemoryRecords.withRecords(
            RecordBatch.MAGIC_VALUE_V1,
            offset,
            Compression.NONE,
            TimestampType.CREATE_TIME,
            Arrays.stream(records).map(s -> new SimpleRecord(offset * 10, s.getBytes())).toArray(SimpleRecord[]::new));
    }
This test was intended to check file size and positions after closing and reopening a segment.
Since there is no log file in ElasticLogSegment, we only test the segment size when reopening.
The method name is kept the same for compatibility.
core/src/test/java/kafka/log/streamaspect/ElasticLogSegmentTest.java