Re: Strange behavior when turn the system clock back

2016-08-11 Thread Gabriel Ibarra
Thanks for answering, all help is welcome. Yes, I tested without changing the clock and It works well. Actually both consumer are running in different process, so I think it is not the case that you mention. I even tested this using two different Kafka clients, using the java client and using

Re: kafka broker is dropping the messages after acknowledging librdkafka

2016-08-11 Thread Tom Crayford
Are you running with unclean leader election on? Are you setting min in sync replicas at all? Can you attach controller and any other logs from the brokers you have? They would be crucial in debugging this kind of issue. Thanks Tom Crayford Heroku Kafka On Thursday, 11 August 2016, Mazhar

kafka broker is dropping the messages after acknowledging librdkafka

2016-08-11 Thread Mazhar Shaikh
Hi Kafka Team, I'm using kafka (kafka_2.11-0.9.0.1) with librdkafka (0.8.1) API for producer During a run of 2hrs, I notice the total number of messaged ack'd by librdkafka delivery report is greater than the maxoffset of a partition in kafka broker. I'm running kafka broker with replication

Re: Strange behavior when turn the system clock back

2016-08-11 Thread Ismael Juma
Kafka code uses System.currentTimeMillis in a number of places, so it would not surprise me if it misbehaves when the clock is turned back by an hour. System.nanoTime is meant to handle this issue, but there are questions about the performance impact of using that (

Kafka consumer

2016-08-11 Thread Auduru Suresh
Hi , We've wrote kafka consumer and for each restart it is reading messages from starting of partition . Please help me how we can make it read from last offset. Also, please subscribe me to the forum. Thanks, Suresh

Re: [ANNOUCE] Apache Kafka 0.10.0.1 Released

2016-08-11 Thread Guozhang Wang
Thanks Ismael for managing the release! Guozhang On Thu, Aug 11, 2016 at 12:15 AM, Ismael Juma wrote: > Thank you Gwen. :) Also, thanks to Jun for copying the artifacts to the SVN > release repo (requires a PMC member) and to Gwen for answering my > questions. > > Ismael >

Re: [DISCUSS] Time-based releases for Apache Kafka

2016-08-11 Thread Guozhang Wang
I think we do not need to make the same guarantee as for "how old of your Kafka version that you can upgrade to the latest in one shot" (just call it "upgrade maintenance" for short) and "how old of your Kafka version that you can enjoy backport critical bug fixes from the latest version" (call it

[jira] [Commented] (KAFKA-3894) LogCleaner thread crashes if not even one segment can fit in the offset map

2016-08-11 Thread Tom Crayford (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-3894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15417675#comment-15417675 ] Tom Crayford commented on KAFKA-3894: - Hi Jun, We're probably going to start on b. for now. I think

[jira] [Commented] (KAFKA-3777) Extract the existing LRU cache out of RocksDBStore

2016-08-11 Thread Damian Guy (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-3777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15417518#comment-15417518 ] Damian Guy commented on KAFKA-3777: --- We need to support concurrent access (Queryable State), so it is

Re: [DISCUSS] KIP-73: Replication Quotas

2016-08-11 Thread Jun Rao
Mayuresh, That's a good question. I think if the response size (after leader throttling) is smaller than min.bytes, we will just delay the sending of the response up to max.wait as we do now. This should prevent frequent empty responses to the follower. Thanks, Jun On Wed, Aug 10, 2016 at 9:17

Re: [kafka-clients] [ANNOUCE] Apache Kafka 0.10.0.1 Released

2016-08-11 Thread Jun Rao
Ismael, Thanks for running the release. Jun On Wed, Aug 10, 2016 at 5:01 PM, Ismael Juma wrote: > The Apache Kafka community is pleased to announce the release for Apache > Kafka 0.10.0.1. > This is a bug fix release that fixes 53 issues in 0.10.0.0. > > All of the changes

[jira] [Comment Edited] (KAFKA-4009) Data corruption or EIO leads to data loss

2016-08-11 Thread Aishwarya Ganesan (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-4009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15417824#comment-15417824 ] Aishwarya Ganesan edited comment on KAFKA-4009 at 8/11/16 7:50 PM: --- The

Re: [DISCUSS] KIP-73: Replication Quotas

2016-08-11 Thread Joel Koshy
Hi Jun, I'm not sure that would work unless we have separate replica fetchers, since this would cause all replicas (including ones that are not throttled) to get delayed. Instead, we could just have the leader populate the throttle-time field of the response as a hint to the follower as to how

[jira] [Commented] (KAFKA-3916) Connection from controller to broker disconnects

2016-08-11 Thread Jason Gustafson (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-3916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15417813#comment-15417813 ] Jason Gustafson commented on KAFKA-3916: Could we be hitting the idle connection timeout? The

[jira] [Commented] (KAFKA-4009) Data corruption or EIO leads to data loss

2016-08-11 Thread Aishwarya Ganesan (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-4009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15417824#comment-15417824 ] Aishwarya Ganesan commented on KAFKA-4009: -- The way I test is stop the cluster after the workload

Re: [VOTE] KIP-70: Revise Partition Assignment Semantics on New Consumer's Subscription Change

2016-08-11 Thread Vahid S Hashemian
Hello, Thanks to everyone who voted, and provided feedback on this KIP. The KIP has passed with a total of 9 "+1" votes. Feedback and suggestions on the KIP are still welcome! Regards, --Vahid From: Vahid S Hashemian/Silicon Valley/IBM@IBMUS To: dev@kafka.apache.org Date:

Re: Strange behavior when turn the system clock back

2016-08-11 Thread Gabriel Ibarra
Thanks Ismael, I agree with you, It seems to be a problem related with absolute timers. So, How we continue?, do you agree with report this as a bug? In our system this issue has a great impact. And maybe this particular issue could be fixed without a serious decreasing of performance. On Thu,

[jira] [Created] (KAFKA-4033) KIP-70: Revise Partition Assignment Semantics on New Consumer's Subscription Change

2016-08-11 Thread Vahid Hashemian (JIRA)
Vahid Hashemian created KAFKA-4033: -- Summary: KIP-70: Revise Partition Assignment Semantics on New Consumer's Subscription Change Key: KAFKA-4033 URL: https://issues.apache.org/jira/browse/KAFKA-4033

[jira] [Work started] (KAFKA-4033) KIP-70: Revise Partition Assignment Semantics on New Consumer's Subscription Change

2016-08-11 Thread Vahid Hashemian (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-4033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on KAFKA-4033 started by Vahid Hashemian. -- > KIP-70: Revise Partition Assignment Semantics on New Consumer's

Re: [DISCUSS] KIP-73: Replication Quotas

2016-08-11 Thread Jun Rao
Hi, Joel, Yes, the response size includes both throttled and unthrottled replicas. However, the response is only delayed up to max.wait if the response size is less than min.bytes, which matches the current behavior. So, there is no extra delay to due throttling, right? For replica fetchers, the

Re: [DISCUSS] KIP-71 Enable log compaction and deletion to co-exist

2016-08-11 Thread Jun Rao
Hi, Damian, Thanks for the proposal. It makes sense to use time-based deletion retention and compaction together, as you mentioned in the KStream. Is there a use case where we want to combine size-based deletion retention and compaction together? Jun On Thu, Aug 11, 2016 at 2:00 AM, Damian Guy

[jira] [Created] (KAFKA-4034) Consumer need not lookup coordinator when using manual assignment

2016-08-11 Thread Jason Gustafson (JIRA)
Jason Gustafson created KAFKA-4034: -- Summary: Consumer need not lookup coordinator when using manual assignment Key: KAFKA-4034 URL: https://issues.apache.org/jira/browse/KAFKA-4034 Project: Kafka

[jira] [Assigned] (KAFKA-4034) Consumer need not lookup coordinator when using manual assignment

2016-08-11 Thread Jason Gustafson (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Gustafson reassigned KAFKA-4034: -- Assignee: Jason Gustafson > Consumer need not lookup coordinator when using manual

[jira] [Commented] (KAFKA-4034) Consumer need not lookup coordinator when using manual assignment

2016-08-11 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15418299#comment-15418299 ] ASF GitHub Bot commented on KAFKA-4034: --- GitHub user hachikuji opened a pull request:

Re: Review request for KAFKA-3600

2016-08-11 Thread Ashish Singh
Hey Gwen, I think this was more than a verification step, it was a building step towards a backwards compatible clients or for clients that can select feature based on brokers it is talking to. Are we now against the idea of having smarter clients? This adds complexity to enable clients to inform

Re: [DISCUSS] KIP-73: Replication Quotas

2016-08-11 Thread Mayuresh Gharat
Hi Jun, Correct me if I am wrong. If the response size includes throttled and unthrottled replicas, I am thinking if this is possible : The leader broker B1 receives a fetch request partition P1 and P2 for a topic from replica broker B2. In this case lets say that only P2 is throttled on the

Re: [ANNOUCE] Apache Kafka 0.10.0.1 Released

2016-08-11 Thread Ismael Juma
Thank you Gwen. :) Also, thanks to Jun for copying the artifacts to the SVN release repo (requires a PMC member) and to Gwen for answering my questions. Ismael On Thu, Aug 11, 2016 at 4:37 AM, Gwen Shapira wrote: > Woohoo! > > Thank you, Ismael! You make a great release

[jira] [Updated] (KAFKA-3096) Leader is not set to -1 when it is shutdown if followers are down

2016-08-11 Thread Ismael Juma (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ismael Juma updated KAFKA-3096: --- Status: In Progress (was: Patch Available) > Leader is not set to -1 when it is shutdown if

[jira] [Comment Edited] (KAFKA-3916) Connection from controller to broker disconnects

2016-08-11 Thread Michal Turek (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-3916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15416682#comment-15416682 ] Michal Turek edited comment on KAFKA-3916 at 8/11/16 7:14 AM: -- Production of

Re: [DISCUSS] Time-based releases for Apache Kafka

2016-08-11 Thread Ismael Juma
Hi Joel, I think my suggestion was misunderstood. :) I suggested that we should support upgrades to the latest release for a reasonable period (and I used 2 years as an example). That doesn't mean supporting all of those branches for that period. It simply means that we maintain the code

Re: [DISCUSS] Time-based releases for Apache Kafka

2016-08-11 Thread Ismael Juma
Do we need to make a decision on this particular point? Could we gauge community demand (people tend to ask for fixes to be backported in JIRA) and decide then? If we make a good job of avoiding regressions, then it seems that each branch should really only need one or or a maximum of two bug fix

[jira] [Commented] (KAFKA-3916) Connection from controller to broker disconnects

2016-08-11 Thread Michal Turek (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-3916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15416682#comment-15416682 ] Michal Turek commented on KAFKA-3916: - Production of messages was failing for few seconds this time.

Re: [DISCUSS] KIP-73: Replication Quotas

2016-08-11 Thread Ben Stopford
Hi Mayureesh That’s a good question and something that should be covered. I think if the leader throttles partitions so the response gets too small, it should be automatically delayed in Purgatory. Likewise, on the follower, if the request is contains no partitions the request will be again

Re: [DISCUSS] KIP-71 Enable log compaction and deletion to co-exist

2016-08-11 Thread Damian Guy
Hi Jason, Thanks for your input - appreciated. 1. Would it make sense to use this KIP in the consumer coordinator to > expire offsets based on the topic's retention time? Currently, we have a > periodic task which scans the full cache to check which offsets can be > expired, but we might be able

[GitHub] kafka pull request #1719: Sentences are not fluent

2016-08-11 Thread sven0726
GitHub user sven0726 opened a pull request: https://github.com/apache/kafka/pull/1719 Sentences are not fluent You can merge this pull request into a Git repository by running: $ git pull https://github.com/sven0726/kafka trunk Alternatively you can review and apply these

Re: [DISCUSS] KIP-71 Enable log compaction and deletion to co-exist

2016-08-11 Thread Neha Narkhede
Jun, The motivation for this KIP is to handle joins and windows in Kafka streams better and since Streams supports time-based windows, the KIP suggests combining time-based deletion and compaction. It might make sense to do the same for size-based windows, but can you think of a concrete use

[jira] [Updated] (KAFKA-3845) Support per-connector converters

2016-08-11 Thread Ewen Cheslack-Postava (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-3845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ewen Cheslack-Postava updated KAFKA-3845: - Status: Patch Available (was: Open) > Support per-connector converters >