Re: weird partitioner behavior

2013-01-11 Thread Jun Rao
The very first message triggers the creation of the topic. Once the topic is created, the producer can know the # of partitions. Thanks, Jun On Fri, Jan 11, 2013 at 5:20 PM, Jane Wang wrote: > I am using kafka 0.7. and I write a simple customized partitioner: > > public static class ExpertSear

Re: retrieving and deleting about topics

2013-01-11 Thread Jun Rao
In 0.7, we don't have such an api, but you can read all topics directly from ZK. In 0.8, there is a getMetadata Api that returns all topics. Thanks, Jun On Fri, Jan 11, 2013 at 5:17 PM, Jane Wang wrote: > I am new to kafka and would appreciate any suggestions:)= > > In kafka 0.7, is it possibl

[jira] [Commented] (KAFKA-648) Use uniform convention for naming properties keys

2013-01-11 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551766#comment-13551766 ] Jun Rao commented on KAFKA-648: --- Merged to trunk and resolved conflicts. > U

weird partitioner behavior

2013-01-11 Thread Jane Wang
I am using kafka 0.7. and I write a simple customized partitioner: public static class ExpertSearchCollectionPartitioner implementsPartitioner { @Override public synchronized int partition(Long key, int numPartitions) { System.out.print("partition: " + key.hashCode() + ", " +

retrieving and deleting about topics

2013-01-11 Thread Jane Wang
I am new to kafka and would appreciate any suggestions:)= In kafka 0.7, is it possible for the consumer to obtain all the topics so far written by the broker? If not possible, is there any later version makes this possible? thanks alot!

[jira] [Updated] (KAFKA-648) Use uniform convention for naming properties keys

2013-01-11 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jun Rao updated KAFKA-648: -- Resolution: Fixed Status: Resolved (was: Patch Available) Thanks for the last patch. +1. Committed to 0

[jira] [Commented] (KAFKA-648) Use uniform convention for naming properties keys

2013-01-11 Thread Swapnil Ghike (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551666#comment-13551666 ] Swapnil Ghike commented on KAFKA-648: - Will it make sense to create a Utils function to

[jira] [Updated] (KAFKA-648) Use uniform convention for naming properties keys

2013-01-11 Thread Sriram Subramanian (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sriram Subramanian updated KAFKA-648: - Attachment: configchanges-v6-rebased.patch rebased > Use uniform conventi

[jira] [Updated] (KAFKA-683) Fix correlation ids in all requests sent to kafka

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-683: Resolution: Fixed Status: Resolved (was: Patch Available) Checked in the patch after revert

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

2013-01-11 Thread Neha Narkhede (JIRA)
Neha Narkhede created KAFKA-696: --- Summary: Fix toString() API for all requests to make logging easier to read Key: KAFKA-696 URL: https://issues.apache.org/jira/browse/KAFKA-696 Project: Kafka

[jira] [Updated] (KAFKA-683) Fix correlation ids in all requests sent to kafka

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-683: Status: Patch Available (was: In Progress) > Fix correlation ids in all requests sent to kafka

[jira] [Commented] (KAFKA-683) Fix correlation ids in all requests sent to kafka

2013-01-11 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551550#comment-13551550 ] Jun Rao commented on KAFKA-683: --- The changes in core/src/test/resources/log4j.properties are

[jira] [Updated] (KAFKA-515) Log cleanup can close a file channel opnened by Log.read before the transfer completes

2013-01-11 Thread Swapnil Ghike (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Swapnil Ghike updated KAFKA-515: Affects Version/s: 0.8.1 > Log cleanup can close a file channel opnened by Log.read before the t

[jira] [Updated] (KAFKA-515) Log cleanup can close a file channel opnened by Log.read before the transfer completes

2013-01-11 Thread Swapnil Ghike (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Swapnil Ghike updated KAFKA-515: Fix Version/s: (was: 0.8) 0.8.1 > Log cleanup can close a file channel op

[jira] [Updated] (KAFKA-648) Use uniform convention for naming properties keys

2013-01-11 Thread Sriram Subramanian (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sriram Subramanian updated KAFKA-648: - Attachment: configchanges-v6.patch - Updated the comments. - Did not remove log.dir as the

[jira] [Updated] (KAFKA-683) Fix correlation ids in all requests sent to kafka

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-683: Attachment: kafka-683-v3-unit-test.patch Fixed correlation ids in AsyncProducerTest

[jira] [Commented] (KAFKA-598) decouple fetch size from max message size

2013-01-11 Thread Joel Koshy (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551383#comment-13551383 ] Joel Koshy commented on KAFKA-598: -- The full scope should probably move out of 0.8 - i.e.,

[jira] [Updated] (KAFKA-695) Broker shuts down due to attempt to read a closed index file

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-695: Component/s: log > Broker shuts down due to attempt to read a closed index file > --

[jira] [Updated] (KAFKA-683) Fix correlation ids in all requests sent to kafka

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-683: Attachment: kafka-683-v3.patch > Fix correlation ids in all requests sent to kafka > ---

[jira] [Commented] (KAFKA-598) decouple fetch size from max message size

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551344#comment-13551344 ] Neha Narkhede commented on KAFKA-598: - Do we want to move this out of 0.8 ?

[jira] [Commented] (KAFKA-568) LogTest started failing after KAFKA-506

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551345#comment-13551345 ] Neha Narkhede commented on KAFKA-568: - ping > LogTest started failing

[jira] [Commented] (KAFKA-683) Fix correlation ids in all requests sent to kafka

2013-01-11 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551340#comment-13551340 ] Jun Rao commented on KAFKA-683: --- Got the following compilation error on the latest rebase. [

[jira] [Updated] (KAFKA-649) Cleanup log4j logging

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-649: Affects Version/s: 0.8.1 > Cleanup log4j logging > - > > Key

[jira] [Resolved] (KAFKA-669) Irrecoverable error on leader while rolling to a new segment

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede resolved KAFKA-669. - Resolution: Implemented Assignee: Neha Narkhede > Irrecoverable error on leader while ro

[jira] [Created] (KAFKA-695) Broker shuts down due to attempt to read a closed index file

2013-01-11 Thread Neha Narkhede (JIRA)
Neha Narkhede created KAFKA-695: --- Summary: Broker shuts down due to attempt to read a closed index file Key: KAFKA-695 URL: https://issues.apache.org/jira/browse/KAFKA-695 Project: Kafka Issue

[jira] [Closed] (KAFKA-692) ConsoleConsumer outputs diagnostic message to stdout instead of stderr

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede closed KAFKA-692. --- > ConsoleConsumer outputs diagnostic message to stdout instead of stderr > ---

[jira] [Updated] (KAFKA-692) ConsoleConsumer outputs diagnostic message to stdout instead of stderr

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-692: Resolution: Fixed Assignee: ben fleis Status: Resolved (was: Patch Available) Checked

[jira] [Updated] (KAFKA-694) ProducerPerformance doesn't take "compression-codec" from command line

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-694: Fix Version/s: (was: 0.8) Assignee: John Fung (was: ben fleis) > ProducerPerforman

[jira] [Commented] (KAFKA-694) ProducerPerformance doesn't take "compression-codec" from command line

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551335#comment-13551335 ] Neha Narkhede commented on KAFKA-694: - oops, wrong jira > ProducerPerf

[jira] [Closed] (KAFKA-694) ProducerPerformance doesn't take "compression-codec" from command line

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede closed KAFKA-694. --- > ProducerPerformance doesn't take "compression-codec" from command line > ---

[jira] [Updated] (KAFKA-694) ProducerPerformance doesn't take "compression-codec" from command line

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-694: Resolution: Fixed Fix Version/s: 0.8 Assignee: ben fleis Status: Resolved

[jira] [Commented] (KAFKA-694) ProducerPerformance doesn't take "compression-codec" from command line

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551323#comment-13551323 ] Neha Narkhede commented on KAFKA-694: - I suggest we take a string compression code that

[jira] [Updated] (KAFKA-694) ProducerPerformance doesn't take "compression-codec" from command line

2013-01-11 Thread John Fung (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Fung updated KAFKA-694: Status: Patch Available (was: Open) > ProducerPerformance doesn't take "compression-codec" from command

[jira] [Updated] (KAFKA-694) ProducerPerformance doesn't take "compression-codec" from command line

2013-01-11 Thread John Fung (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Fung updated KAFKA-694: Attachment: kafka-694-v1.patch Uploaded kafka-694-v1.patch to remove variable compressionCodecOption which

[jira] [Updated] (KAFKA-683) Fix correlation ids in all requests sent to kafka

2013-01-11 Thread Neha Narkhede (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-683: Attachment: kafka-683-v2-rebased-twice.patch Rebased yet again! > Fix correlation i

[jira] [Created] (KAFKA-694) ProducerPerformance doesn't take "compression-codec" from command line

2013-01-11 Thread John Fung (JIRA)
John Fung created KAFKA-694: --- Summary: ProducerPerformance doesn't take "compression-codec" from command line Key: KAFKA-694 URL: https://issues.apache.org/jira/browse/KAFKA-694 Project: Kafka Iss

[jira] [Commented] (KAFKA-648) Use uniform convention for naming properties keys

2013-01-11 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551233#comment-13551233 ] Jun Rao commented on KAFKA-648: --- Thanks for patch v5. Some of the comments in those config fi

[jira] [Updated] (KAFKA-692) ConsoleConsumer outputs diagnostic message to stdout instead of stderr

2013-01-11 Thread ben fleis (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ben fleis updated KAFKA-692: Description: At the end of its handling loop, ConsoleConsumer prints "Consumed %d messages" to standard out

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

2013-01-11 Thread Maxime Brugidou (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maxime Brugidou updated KAFKA-693: -- Attachment: mirror_debug.log mirror.log > Consumer rebalance fails if no lea

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

2013-01-11 Thread Maxime Brugidou (JIRA)
Maxime Brugidou created KAFKA-693: - Summary: Consumer rebalance fails if no leader available for a partition and stops all fetchers Key: KAFKA-693 URL: https://issues.apache.org/jira/browse/KAFKA-693