[jira] [Commented] (KAFKA-816) Reduce noise in Kafka server logs due to NotLeaderForPartitionException

2013-05-29 Thread Neha Narkhede (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13669434#comment-13669434
 ] 

Neha Narkhede commented on KAFKA-816:
-

Balaji, 

That fix was to reduce the noise in the kafka server logs. The error you see is 
on the consumer when the leader for some partitions is failing over to another 
replica. Can you please move the issue to a separate JIRA?

 Reduce noise in Kafka server logs due to NotLeaderForPartitionException
 ---

 Key: KAFKA-816
 URL: https://issues.apache.org/jira/browse/KAFKA-816
 Project: Kafka
  Issue Type: Bug
  Components: core
Affects Versions: 0.8
Reporter: Neha Narkhede
Assignee: Neha Narkhede
Priority: Blocker
  Labels: kafka-0.8, p2
 Attachments: KAFKA-816.jpg, kafka-816.patch, kafka-816-v2.patch

   Original Estimate: 1h
  Remaining Estimate: 1h

 NotLeaderForPartitionException is logged at the ERROR level with a full stack 
 trace. But really this is just an informational message on the server when a 
 client with stale metadata sends requests to the wrong leader for a 
 partition. This floods the logs either if there are many clients or few 
 clients sending many topics (migration tool or mirror maker). This should 
 probably be logged at WARN and without the stack trace

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (KAFKA-816) Reduce noise in Kafka server logs due to NotLeaderForPartitionException

2013-04-25 Thread BalajiSeshadri (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13642334#comment-13642334
 ] 

BalajiSeshadri commented on KAFKA-816:
--

Using the below trunk and i still see error happening.Please lets me know if 
this can be fixed.


https://github.com/apache/kafka.git

[2013-04-25 16:47:08,924] WARN 
[console-consumer-24019_MERD7-21964-1366930009136-8b7f9eb7-leader-finder-thread],
 Failed to add fetcher for [mytopic,0] to broker 
id:0,host:MERD7-21964.echostar.com,port:9092 
(kafka.consumer.ConsumerFetcherManager$$anon$1)
kafka.common.NotLeaderForPartitionException
at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at kafka.common.ErrorMapping$.exceptionFor(ErrorMapping.scala:72)
at 
kafka.consumer.SimpleConsumer.earliestOrLatestOffset(SimpleConsumer.scala:163)
at 
kafka.consumer.ConsumerFetcherThread.handleOffsetOutOfRange(ConsumerFetcherThread.scala:61)
at 
kafka.server.AbstractFetcherThread.addPartition(AbstractFetcherThread.scala:167)
at 
kafka.server.AbstractFetcherManager.addFetcher(AbstractFetcherManager.scala:48)
at 
kafka.consumer.ConsumerFetcherManager$$anon$1$$anonfun$doWork$3.apply(ConsumerFetcherManager.scala:79)
at 
kafka.consumer.ConsumerFetcherManager$$anon$1$$anonfun$doWork$3.apply(ConsumerFetcherManager.scala:75)
at 
scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:95)
at 
scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:95)
at scala.collection.Iterator$class.foreach(Iterator.scala:772)
at 
scala.collection.mutable.HashTable$$anon$1.foreach(HashTable.scala:157)
at 
scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:190)
at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:45)
at scala.collection.mutable.HashMap.foreach(HashMap.scala:95)
at 
kafka.consumer.ConsumerFetcherManager$$anon$1.doWork(ConsumerFetcherManager.scala:75)
at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:51)


 Reduce noise in Kafka server logs due to NotLeaderForPartitionException
 ---

 Key: KAFKA-816
 URL: https://issues.apache.org/jira/browse/KAFKA-816
 Project: Kafka
  Issue Type: Bug
  Components: core
Affects Versions: 0.8
Reporter: Neha Narkhede
Assignee: Neha Narkhede
Priority: Blocker
  Labels: kafka-0.8, p2
 Attachments: kafka-816.patch, kafka-816-v2.patch

   Original Estimate: 1h
  Remaining Estimate: 1h

 NotLeaderForPartitionException is logged at the ERROR level with a full stack 
 trace. But really this is just an informational message on the server when a 
 client with stale metadata sends requests to the wrong leader for a 
 partition. This floods the logs either if there are many clients or few 
 clients sending many topics (migration tool or mirror maker). This should 
 probably be logged at WARN and without the stack trace

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (KAFKA-816) Reduce noise in Kafka server logs due to NotLeaderForPartitionException

2013-04-25 Thread Neha Narkhede (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13642342#comment-13642342
 ] 

Neha Narkhede commented on KAFKA-816:
-

All 0.8 development is happening on the 0.8 branch. Please can you retry on 
that branch ?

 Reduce noise in Kafka server logs due to NotLeaderForPartitionException
 ---

 Key: KAFKA-816
 URL: https://issues.apache.org/jira/browse/KAFKA-816
 Project: Kafka
  Issue Type: Bug
  Components: core
Affects Versions: 0.8
Reporter: Neha Narkhede
Assignee: Neha Narkhede
Priority: Blocker
  Labels: kafka-0.8, p2
 Attachments: kafka-816.patch, kafka-816-v2.patch

   Original Estimate: 1h
  Remaining Estimate: 1h

 NotLeaderForPartitionException is logged at the ERROR level with a full stack 
 trace. But really this is just an informational message on the server when a 
 client with stale metadata sends requests to the wrong leader for a 
 partition. This floods the logs either if there are many clients or few 
 clients sending many topics (migration tool or mirror maker). This should 
 probably be logged at WARN and without the stack trace

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (KAFKA-816) Reduce noise in Kafka server logs due to NotLeaderForPartitionException

2013-04-25 Thread BalajiSeshadri (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13642344#comment-13642344
 ] 

BalajiSeshadri commented on KAFKA-816:
--

Please let me know the Git URL.

 Reduce noise in Kafka server logs due to NotLeaderForPartitionException
 ---

 Key: KAFKA-816
 URL: https://issues.apache.org/jira/browse/KAFKA-816
 Project: Kafka
  Issue Type: Bug
  Components: core
Affects Versions: 0.8
Reporter: Neha Narkhede
Assignee: Neha Narkhede
Priority: Blocker
  Labels: kafka-0.8, p2
 Attachments: kafka-816.patch, kafka-816-v2.patch

   Original Estimate: 1h
  Remaining Estimate: 1h

 NotLeaderForPartitionException is logged at the ERROR level with a full stack 
 trace. But really this is just an informational message on the server when a 
 client with stale metadata sends requests to the wrong leader for a 
 partition. This floods the logs either if there are many clients or few 
 clients sending many topics (migration tool or mirror maker). This should 
 probably be logged at WARN and without the stack trace

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (KAFKA-816) Reduce noise in Kafka server logs due to NotLeaderForPartitionException

2013-04-25 Thread BalajiSeshadri (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13642557#comment-13642557
 ] 

BalajiSeshadri commented on KAFKA-816:
--

Error occuring still in 0.8 branch,pls refer screen shot attached.

 Reduce noise in Kafka server logs due to NotLeaderForPartitionException
 ---

 Key: KAFKA-816
 URL: https://issues.apache.org/jira/browse/KAFKA-816
 Project: Kafka
  Issue Type: Bug
  Components: core
Affects Versions: 0.8
Reporter: Neha Narkhede
Assignee: Neha Narkhede
Priority: Blocker
  Labels: kafka-0.8, p2
 Attachments: KAFKA-816.jpg, kafka-816.patch, kafka-816-v2.patch

   Original Estimate: 1h
  Remaining Estimate: 1h

 NotLeaderForPartitionException is logged at the ERROR level with a full stack 
 trace. But really this is just an informational message on the server when a 
 client with stale metadata sends requests to the wrong leader for a 
 partition. This floods the logs either if there are many clients or few 
 clients sending many topics (migration tool or mirror maker). This should 
 probably be logged at WARN and without the stack trace

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (KAFKA-816) Reduce noise in Kafka server logs due to NotLeaderForPartitionException

2013-03-19 Thread Jun Rao (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13607110#comment-13607110
 ] 

Jun Rao commented on KAFKA-816:
---

Thanks for the patch. Instead of duplicating the comments for each type of 
exception, is it better to add a comment at the beginning of catch to explain 
how different exceptions are handled? The comment should probably be added to 
handleOffsetRequest() too. Also, there is a grammar mistake in Failed produce 
requests is .

 Reduce noise in Kafka server logs due to NotLeaderForPartitionException
 ---

 Key: KAFKA-816
 URL: https://issues.apache.org/jira/browse/KAFKA-816
 Project: Kafka
  Issue Type: Bug
  Components: core
Affects Versions: 0.8
Reporter: Neha Narkhede
Assignee: Neha Narkhede
Priority: Blocker
  Labels: kafka-0.8, p2
 Attachments: kafka-816.patch

   Original Estimate: 1h
  Remaining Estimate: 1h

 NotLeaderForPartitionException is logged at the ERROR level with a full stack 
 trace. But really this is just an informational message on the server when a 
 client with stale metadata sends requests to the wrong leader for a 
 partition. This floods the logs either if there are many clients or few 
 clients sending many topics (migration tool or mirror maker). This should 
 probably be logged at WARN and without the stack trace

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (KAFKA-816) Reduce noise in Kafka server logs due to NotLeaderForPartitionException

2013-03-19 Thread Neha Narkhede (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13607123#comment-13607123
 ] 

Neha Narkhede commented on KAFKA-816:
-

Sure. And the comment is not added to handleOffsetRequest since there is no 
failed offset request rate that we track. Will fix the grammar while checkin.

 Reduce noise in Kafka server logs due to NotLeaderForPartitionException
 ---

 Key: KAFKA-816
 URL: https://issues.apache.org/jira/browse/KAFKA-816
 Project: Kafka
  Issue Type: Bug
  Components: core
Affects Versions: 0.8
Reporter: Neha Narkhede
Assignee: Neha Narkhede
Priority: Blocker
  Labels: kafka-0.8, p2
 Attachments: kafka-816.patch

   Original Estimate: 1h
  Remaining Estimate: 1h

 NotLeaderForPartitionException is logged at the ERROR level with a full stack 
 trace. But really this is just an informational message on the server when a 
 client with stale metadata sends requests to the wrong leader for a 
 partition. This floods the logs either if there are many clients or few 
 clients sending many topics (migration tool or mirror maker). This should 
 probably be logged at WARN and without the stack trace

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira