You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/06/26 02:09:00 UTC

[jira] [Commented] (KAFKA-7097) VerifiableProducer does not work properly with --message-create-time argument

    [ https://issues.apache.org/jira/browse/KAFKA-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16523074#comment-16523074 ] 

ASF GitHub Bot commented on KAFKA-7097:
---------------------------------------

tedyu opened a new pull request #5292: KAFKA-7097 VerifiableProducer does not work properly with --message-create-time argument
URL: https://github.com/apache/kafka/pull/5292
 
 
   Currently create time is interpreted as integer.
   
   This PR makes the tool accept long values.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> VerifiableProducer does not work properly with --message-create-time argument
> -----------------------------------------------------------------------------
>
>                 Key: KAFKA-7097
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7097
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0.0
>            Reporter: Jasper Knulst
>            Priority: Major
>
> If you run:
>  
> ./bin/kafka-verifiable-producer.sh --broker-list <broker-list:9092> --topic test_topic_increasing_p2 --message-create-time <epoch argument> --acks -1 --max-messages 100
> the "<epoch argument>" for --message-create-time doesn't take a 13 digit long like 1529656934000. 
> The error message:
> verifiable-producer: error: argument --message-create-time: could not convert '1529656934000' to Integer (For input string: "1529656934000")
>  
> When you provide a 10 digit (1529656934) epoch for the argument it does work but this leads to your topic being cleaned up in a few minutes since the retention time is expired.
>  
> The error seems to be obvious since VerifiableProducer.java has:
>         Long createTime = (long) res.getInt("createTime");
> when parsing the argument. This should be taken as a Long instead.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)