public static LogAppendInfo unknownLogAppendInfoWithAdditionalInfo(long logStartOffset, List<RecordError> recordErrors) {
        return new LogAppendInfo(-1, -1, OptionalInt.empty(), RecordBatch.NO_TIMESTAMP, -1L, RecordBatch.NO_TIMESTAMP, logStartOffset,
                RecordValidationStats.EMPTY, CompressionType.NONE, -1, -1L, recordErrors, LeaderHwChange.NONE);
    }
In ProduceResponse V8+, we add two new fields record_errors and error_message (see KIP-467).
For any record failures with InvalidTimestamp or InvalidRecordException, we construct a LogAppendInfo object like the one
in unknownLogAppendInfoWithLogStartOffset, but with additional fields recordErrors
storage/src/main/java/org/apache/kafka/storage/internals/log/LogAppendInfo.java