[jira] [Commented] (KAFKA-691) Fault tolerance broken with replication factor 1

2013-01-14 Thread Maxime Brugidou (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552759#comment-13552759 ] Maxime Brugidou commented on KAFKA-691: --- So I wait for your feedback first, but I gue

[jira] [Commented] (KAFKA-693) Consumer rebalance fails if no leader available for a partition and stops all fetchers

2013-01-14 Thread Maxime Brugidou (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552781#comment-13552781 ] Maxime Brugidou commented on KAFKA-693: --- I looked up the code in details and I am stu

[jira] [Updated] (KAFKA-701) ConsoleProducer does not exit correctly and fix some config properties following KAFKA-648

2013-01-14 Thread Maxime Brugidou (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maxime Brugidou updated KAFKA-701: -- Attachment: KAFKA-701.patch > ConsoleProducer does not exit correctly and fix some config pr

[jira] [Created] (KAFKA-701) ConsoleProducer does not exit correctly and fix some config properties following KAFKA-648

2013-01-14 Thread Maxime Brugidou (JIRA)
Maxime Brugidou created KAFKA-701: - Summary: ConsoleProducer does not exit correctly and fix some config properties following KAFKA-648 Key: KAFKA-701 URL: https://issues.apache.org/jira/browse/KAFKA-701

[jira] [Updated] (KAFKA-701) ConsoleProducer does not exit correctly and fix some config properties following KAFKA-648

2013-01-14 Thread Maxime Brugidou (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maxime Brugidou updated KAFKA-701: -- Status: Patch Available (was: Open) > ConsoleProducer does not exit correctly and fix some

[jira] [Commented] (KAFKA-693) Consumer rebalance fails if no leader available for a partition and stops all fetchers

2013-01-14 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552854#comment-13552854 ] Jun Rao commented on KAFKA-693: --- That's a good point. I overlooked this. Your understanding i

[jira] [Commented] (KAFKA-697) ConsoleConsumer throws InvalidConfigException for "." in client id

2013-01-14 Thread John Fung (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552866#comment-13552866 ] John Fung commented on KAFKA-697: - Tested kafka-697.patch and it fixes the exception. Ran a

[jira] [Updated] (KAFKA-701) ConsoleProducer does not exit correctly and fix some config properties following KAFKA-648

2013-01-14 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jun Rao updated KAFKA-701: -- Resolution: Fixed Fix Version/s: 0.8 Assignee: Maxime Brugidou Status: Resolved (was:

[jira] [Updated] (KAFKA-698) broker may expose uncommitted data to a consumer

2013-01-14 Thread Jay Kreps (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jay Kreps updated KAFKA-698: Attachment: KAFKA-698-v1.patch Attached is a hacky but small patch that should fix this. The proper fix is

periodically delete topics in version 0.8?

2013-01-14 Thread Jane Wang
in kafka 0.8, is it possible for a consumer to send a request to the broker to delete some topics? If yes, is it possible to provide some sample code snippet to do it? I would highly appreciate it. Thanks in advance!

[jira] [Commented] (KAFKA-693) Consumer rebalance fails if no leader available for a partition and stops all fetchers

2013-01-14 Thread Maxime Brugidou (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552951#comment-13552951 ] Maxime Brugidou commented on KAFKA-693: --- Looks good, It should work but I still have

[jira] [Created] (KAFKA-702) Livelock between request handler/processor threads

2013-01-14 Thread Joel Koshy (JIRA)
Joel Koshy created KAFKA-702: Summary: Livelock between request handler/processor threads Key: KAFKA-702 URL: https://issues.apache.org/jira/browse/KAFKA-702 Project: Kafka Issue Type: Bug Af

[jira] Subscription: outstanding kafka patches

2013-01-14 Thread jira
Issue Subscription Filter: outstanding kafka patches (58 issues) The list of outstanding kafka patches Subscriber: kafka-mailing-list Key Summary KAFKA-699 Disallow clients to set replicaId in FetchRequest https://issues.apache.org/jira/browse/KAFKA-699 KAFKA-698 br

[jira] [Commented] (KAFKA-698) broker may expose uncommitted data to a consumer

2013-01-14 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553023#comment-13553023 ] Jun Rao commented on KAFKA-698: --- +1 on the patch. > broker may expose uncomm

[jira] [Updated] (KAFKA-703) A fetch request in Fetch Purgatory can double count the bytes from the same delayed produce request

2013-01-14 Thread Sriram Subramanian (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sriram Subramanian updated KAFKA-703: - Assignee: (was: Joel Koshy) > A fetch request in Fetch Purgatory can double count

[jira] [Created] (KAFKA-703) A fetch request in Fetch Purgatory can double count the bytes from the same delayed produce request

2013-01-14 Thread Sriram Subramanian (JIRA)
Sriram Subramanian created KAFKA-703: Summary: A fetch request in Fetch Purgatory can double count the bytes from the same delayed produce request Key: KAFKA-703 URL: https://issues.apache.org/jira/browse/KAFK

[jira] [Updated] (KAFKA-702) Deadlock between request handler/processor threads

2013-01-14 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-702: Component/s: network Labels: bugs (was: ) Description: We have seen this a couple of t

kafka 0.8 vs. scala 2.9.2

2013-01-14 Thread Jane Wang
I need to use some of the newly added functions of kafka 0.8. However, in our system, we support scala 2.9.2. I build my code together kafka 0.8 and scala 2.9.2 and I got alot of runtime issues, one of them is: Exception in thread "main" java.lang.NoClassDefFoundError: scala/Tuple2$mcLL$sp at kafka

Re: periodically delete topics in version 0.8?

2013-01-14 Thread Neha Narkhede
Jane, In 0.8, topics can be deleted only via an admin command. The JIRA for this feature is still open - https://issues.apache.org/jira/browse/KAFKA-330 Thanks, Neha On Mon, Jan 14, 2013 at 10:19 AM, Jane Wang wrote: > in kafka 0.8, is it possible for a consumer to send a request to the broke

Re: retrieving and deleting about topics

2013-01-14 Thread Jane Wang
I tried to grep getMetadata from kafka 0.8. However, I failed to find it. does the api belong to a particular of kafka 0.8? Does this getMetadata an api belong to consumer? On Fri, Jan 11, 2013 at 9:04 PM, Jun Rao wrote: > getMetadata

[jira] [Commented] (KAFKA-693) Consumer rebalance fails if no leader available for a partition and stops all fetchers

2013-01-14 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553136#comment-13553136 ] Jun Rao commented on KAFKA-693: --- Another quick thought on this. Instead of using Option for o

Re: retrieving and deleting about topics

2013-01-14 Thread Neha Narkhede
There is one on the SyncProducer and another on the SimpleConsumer, both available through java apis - send(request: kafka.javaapi.TopicMetadataRequest): kafka.javaapi.TopicMetadataResponse Thanks, Neha On Mon, Jan 14, 2013 at 1:25 PM, Jane Wang wrote: > I tried to grep getMetadata from kafka

[jira] [Assigned] (KAFKA-702) Deadlock between request handler/processor threads

2013-01-14 Thread Jay Kreps (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jay Kreps reassigned KAFKA-702: --- Assignee: Jay Kreps > Deadlock between request handler/processor threads > ---

Re: weird partitioner behavior

2013-01-14 Thread Jane Wang
I am still confused: (1) What I observed is that not only the first msg got wrong partition number, but also the second message. (2) If kafka uses the first msg to get the correct msg. Does it mean that if we use the customized partitioner, we cannot get the right partition for this message?

[jira] [Updated] (KAFKA-688) System Test - Update all testcase_xxxx_properties.json for properties keys uniform naming convention

2013-01-14 Thread John Fung (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Fung updated KAFKA-688: Attachment: kafka-688-v2.patch Uploaded kafka-688-v2.patch to revert the change of log.file.size => log.seg

[jira] [Assigned] (KAFKA-696) Fix toString() API for all requests to make logging easier to read

2013-01-14 Thread Sriram Subramanian (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sriram Subramanian reassigned KAFKA-696: Assignee: Sriram Subramanian (was: Neha Narkhede) > Fix toString() API for all

[jira] [Assigned] (KAFKA-700) log client ip when we log each request on the broker

2013-01-14 Thread Sriram Subramanian (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sriram Subramanian reassigned KAFKA-700: Assignee: Sriram Subramanian > log client ip when we log each request on the bro

[jira] [Updated] (KAFKA-688) System Test - Update all testcase_xxxx_properties.json for properties keys uniform naming convention

2013-01-14 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jun Rao updated KAFKA-688: -- Resolution: Fixed Fix Version/s: 0.8 Status: Resolved (was: Patch Available) Thanks for patch

[jira] [Closed] (KAFKA-688) System Test - Update all testcase_xxxx_properties.json for properties keys uniform naming convention

2013-01-14 Thread John Fung (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Fung closed KAFKA-688. --- > System Test - Update all testcase__properties.json for properties keys > uniform naming convention > --

Re: kafka 0.8 vs. scala 2.9.2

2013-01-14 Thread Neha Narkhede
Jane, I changed the version of scala in project/build.properties to 2.9.2 and did a ./sbt clean update package. It seems to build and run fine for me. I would check the classpath to see if there are conflicting versions of scala. Thanks, Neha On Mon, Jan 14, 2013 at 1:22 PM, Jane Wang wrote:

[jira] [Commented] (KAFKA-697) ConsoleConsumer throws InvalidConfigException for "." in client id

2013-01-14 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553345#comment-13553345 ] Neha Narkhede commented on KAFKA-697: - Unfortunately, this rule of not allowing a '.' i

[jira] [Comment Edited] (KAFKA-697) ConsoleConsumer throws InvalidConfigException for "." in client id

2013-01-14 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553345#comment-13553345 ] Neha Narkhede edited comment on KAFKA-697 at 1/15/13 12:41 AM: --

[jira] [Commented] (KAFKA-697) ConsoleConsumer throws InvalidConfigException for "." in client id

2013-01-14 Thread Sriram Subramanian (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553351#comment-13553351 ] Sriram Subramanian commented on KAFKA-697: -- +1 on Neha's comment. It is simpler to

[jira] [Assigned] (KAFKA-697) ConsoleConsumer throws InvalidConfigException for "." in client id

2013-01-14 Thread Swapnil Ghike (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Swapnil Ghike reassigned KAFKA-697: --- Assignee: Swapnil Ghike > ConsoleConsumer throws InvalidConfigException for "." in client

[jira] [Updated] (KAFKA-697) ConsoleConsumer throws InvalidConfigException for "." in client id

2013-01-14 Thread Swapnil Ghike (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Swapnil Ghike updated KAFKA-697: Attachment: kafka-697-allow-dot.patch Thanks for your comments. I agree that allowing dot will make

[jira] [Commented] (KAFKA-698) broker may expose uncommitted data to a consumer

2013-01-14 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553392#comment-13553392 ] Neha Narkhede commented on KAFKA-698: - +1 on the patch > broker may ex

[jira] [Updated] (KAFKA-698) broker may expose uncommitted data to a consumer

2013-01-14 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-698: Assignee: Jay Kreps > broker may expose uncommitted data to a consumer > ---

[jira] [Updated] (KAFKA-671) DelayedProduce requests should not hold full producer request data

2013-01-14 Thread Sriram Subramanian (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sriram Subramanian updated KAFKA-671: - Attachment: outOfMemFix-v1.patch This is one possible fix. The fix would largely depend on

[jira] [Commented] (KAFKA-702) Deadlock between request handler/processor threads

2013-01-14 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553499#comment-13553499 ] Jun Rao commented on KAFKA-702: --- I am wondering if the following approach will break the dead

[jira] [Commented] (KAFKA-702) Deadlock between request handler/processor threads

2013-01-14 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553509#comment-13553509 ] Neha Narkhede commented on KAFKA-702: - I like this idea better than having separate res

Re: About kafka 0.8 producer zookeeper-based load balancing on per-request basis

2013-01-14 Thread Jun Rao
Basically, we spread partitions among multiple brokers. If a message is sent without a key, the producer picks a random partition to balance the load. If a message has a key, the default partitioner hashes the key to one of the partitions deterministically. Then, the load may not always be balanced

Re: About kafka 0.8 producer zookeeper-based load balancing on per-request basis

2013-01-14 Thread Neha Narkhede
> > > Than how it achieve zookeeper-based load balance on per-request basis? You are asking two related but different questions. One is how does load balancing work and the other is how does broker discovery works. Jun explained how load balancing works and how requests are routed to partitons. I

RE: About kafka 0.8 producer zookeeper-based load balancing on per-request basis

2013-01-14 Thread Jun Guo -X (jungu - CIIC at Cisco)
In 0.8, we got rid of zookeeper from the producer and replaced it with a metadata API. What is the API like? Can we call the API manually? On startup and whenever a request fails, the producer refreshes its view of the cluster by sending a metadata request to any of the brokers. But in my test, i

RE: About kafka 0.8 producer zookeeper-based load balancing on per-request basis

2013-01-14 Thread Jun Guo -X (jungu - CIIC at Cisco)
Thanks for your kindly reply. From: Jun Rao [mailto:jun...@gmail.com] Sent: 2013年1月15日 13:53 To: dev@kafka.apache.org; Jun Guo -X (jungu - CIIC at Cisco) Subject: Re: About kafka 0.8 producer zookeeper-based load balancing on per-request basis Basically, we spread partitions among multiple broke

About kafka 0.8 producer auto detect broker

2013-01-14 Thread gj1989lh
Hi, We know in Kafka 0.7, we can specify zk.connect. And with zookeeper, the producer can dynamically detect broker. But in Kafka 0.8, we can't specify zk.connect for producer. How does the producer in Kafka 0.8 auto detect broker? I have done two experiments. In first one, I configure the broke