kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo Patierno (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KAFKA-5919) Adding checks on "version" field for tools using it
Date Mon, 02 Oct 2017 09:32:00 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-5919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Paolo Patierno updated KAFKA-5919:
    Summary: Adding checks on "version" field for tools using it  (was: Adding checks on "version"
field for delete records command)

> Adding checks on "version" field for tools using it
> ---------------------------------------------------
>                 Key: KAFKA-5919
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5919
>             Project: Kafka
>          Issue Type: Bug
>          Components: tools
>            Reporter: Paolo Patierno
>            Assignee: Paolo Patierno
>            Priority: Minor
>             Fix For: 1.0.0
> Hi,
> the kafka-delete-records script allows user to pass information about records to delete
through a JSON file. Such file, as described in the command help, is made by a "partitions"
array and a "version" field. Reading [KIP-107|https://cwiki.apache.org/confluence/display/KAFKA/KIP-107%3A+Add+purgeDataBefore%28%29+API+in+AdminClient]
and the DeleteRecords API (Key: 21) description it's not clear what such field is and even
it's not used at all (in the current implementation).
> It turned out that the field is for having backward compatibility in the future where
the JSON format could change. This JIRA is about adding more checks on the "version" field
having it not mandatory but assuming the earliest version (current 1) if it's omitted from
the JSON file.

This message was sent by Atlassian JIRA

View raw message