private void continuousCheck(List<StreamRecordBatch> records) {
        long expectedStartOffset = -1L;
        for (StreamRecordBatch record : records) {
            if (expectedStartOffset == -1L || record.getBaseOffset() == expectedStartOffset) {
                expectedStartOffset = record.getLastOffset();
            } else {
                throw new IllegalArgumentException(String.format("Continuous check failed, expected offset: %d," +
                    " actual: %d, records: %s", expectedStartOffset, record.getBaseOffset(), records));
            }
        }
    }
Append record to WAL.

@return backoff status.
s3stream/src/main/java/com/automq/stream/s3/S3Storage.java