[
https://issues.apache.org/jira/browse/KAFKA-18838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18101087#comment-18101087
]
Yunseop Eom commented on KAFKA-18838:
-------------------------------------
Update on PR #22947: https://github.com/apache/kafka/pull/22947
The PR makes arbitrary memory-record fixtures deterministically invalid instead
of relying on random bytes occasionally producing a valid record set. It
preserves payload variation, matches the declared buffer length, and uses an
unsupported magic value to enforce the malformed-input contract.
Validation completed with the Raft test suite, including
ArbitraryMemoryRecordsTest#testGeneratedRecordsAreAlwaysInvalid, and git diff
--check. The PR is open and awaiting review.
> Fix ArbitraryMemoryRecords so that they are always invalid
> ----------------------------------------------------------
>
> Key: KAFKA-18838
> URL: https://issues.apache.org/jira/browse/KAFKA-18838
> Project: Kafka
> Issue Type: Task
> Components: clients, kraft
> Reporter: José Armando García Sancio
> Priority: Minor
>
> The arbitrary memory records generates random bytes. It is possible that the
> generated random bytes are actually a valid memory records.
> We can also improve the implementation so that is generate interesting memory
> records and not just completely random bytes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)