[jira] [Updated] (KAFKA-1140) Move the decoding logic from ConsumerIterator.makeNext to next

2013-11-26 Thread Guozhang Wang (JIRA)

 [ 
https://issues.apache.org/jira/browse/KAFKA-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guozhang Wang updated KAFKA-1140:
-

Attachment: KAFKA-1140_2013-11-26_14:41:00.patch

 Move the decoding logic from ConsumerIterator.makeNext to next
 --

 Key: KAFKA-1140
 URL: https://issues.apache.org/jira/browse/KAFKA-1140
 Project: Kafka
  Issue Type: Bug
Reporter: Guozhang Wang
Assignee: Guozhang Wang
 Fix For: 0.8.1

 Attachments: KAFKA-1140.patch, KAFKA-1140_2013-11-25_12:53:17.patch, 
 KAFKA-1140_2013-11-25_12:55:34.patch, KAFKA-1140_2013-11-26_14:41:00.patch


 Usually people will write code around consumer like
 while(iter.hasNext()) {
 try {
   msg = iter.next()
   // do something
 }
 catch{
 }
 }
 
 However, the iter.hasNext() call itself can throw exceptions due to decoding 
 failures. It would be better to move the decoding to the next function call.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (KAFKA-1140) Move the decoding logic from ConsumerIterator.makeNext to next

2013-11-26 Thread Guozhang Wang (JIRA)

 [ 
https://issues.apache.org/jira/browse/KAFKA-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guozhang Wang updated KAFKA-1140:
-

Attachment: KAFKA-1140_2013-11-26_18:29:53.patch

 Move the decoding logic from ConsumerIterator.makeNext to next
 --

 Key: KAFKA-1140
 URL: https://issues.apache.org/jira/browse/KAFKA-1140
 Project: Kafka
  Issue Type: Bug
Reporter: Guozhang Wang
Assignee: Guozhang Wang
 Fix For: 0.8.1

 Attachments: KAFKA-1140.patch, KAFKA-1140_2013-11-25_12:53:17.patch, 
 KAFKA-1140_2013-11-25_12:55:34.patch, KAFKA-1140_2013-11-26_14:41:00.patch, 
 KAFKA-1140_2013-11-26_18:29:53.patch


 Usually people will write code around consumer like
 while(iter.hasNext()) {
 try {
   msg = iter.next()
   // do something
 }
 catch{
 }
 }
 
 However, the iter.hasNext() call itself can throw exceptions due to decoding 
 failures. It would be better to move the decoding to the next function call.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (KAFKA-1140) Move the decoding logic from ConsumerIterator.makeNext to next

2013-11-25 Thread Guozhang Wang (JIRA)

 [ 
https://issues.apache.org/jira/browse/KAFKA-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guozhang Wang updated KAFKA-1140:
-

Attachment: KAFKA-1140_2013-11-25_12:53:17.patch

 Move the decoding logic from ConsumerIterator.makeNext to next
 --

 Key: KAFKA-1140
 URL: https://issues.apache.org/jira/browse/KAFKA-1140
 Project: Kafka
  Issue Type: Bug
Reporter: Guozhang Wang
Assignee: Guozhang Wang
 Fix For: 0.8.1

 Attachments: KAFKA-1140.patch, KAFKA-1140_2013-11-25_12:53:17.patch


 Usually people will write code around consumer like
 while(iter.hasNext()) {
 try {
   msg = iter.next()
   // do something
 }
 catch{
 }
 }
 
 However, the iter.hasNext() call itself can throw exceptions due to decoding 
 failures. It would be better to move the decoding to the next function call.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (KAFKA-1140) Move the decoding logic from ConsumerIterator.makeNext to next

2013-11-25 Thread Guozhang Wang (JIRA)

 [ 
https://issues.apache.org/jira/browse/KAFKA-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guozhang Wang updated KAFKA-1140:
-

Attachment: KAFKA-1140_2013-11-25_12:55:34.patch

 Move the decoding logic from ConsumerIterator.makeNext to next
 --

 Key: KAFKA-1140
 URL: https://issues.apache.org/jira/browse/KAFKA-1140
 Project: Kafka
  Issue Type: Bug
Reporter: Guozhang Wang
Assignee: Guozhang Wang
 Fix For: 0.8.1

 Attachments: KAFKA-1140.patch, KAFKA-1140_2013-11-25_12:53:17.patch, 
 KAFKA-1140_2013-11-25_12:55:34.patch


 Usually people will write code around consumer like
 while(iter.hasNext()) {
 try {
   msg = iter.next()
   // do something
 }
 catch{
 }
 }
 
 However, the iter.hasNext() call itself can throw exceptions due to decoding 
 failures. It would be better to move the decoding to the next function call.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (KAFKA-1140) Move the decoding logic from ConsumerIterator.makeNext to next

2013-11-22 Thread Guozhang Wang (JIRA)

 [ 
https://issues.apache.org/jira/browse/KAFKA-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guozhang Wang updated KAFKA-1140:
-

Attachment: KAFKA-1140.patch

 Move the decoding logic from ConsumerIterator.makeNext to next
 --

 Key: KAFKA-1140
 URL: https://issues.apache.org/jira/browse/KAFKA-1140
 Project: Kafka
  Issue Type: Bug
Reporter: Guozhang Wang
Assignee: Guozhang Wang
 Fix For: 0.8.1

 Attachments: KAFKA-1140.patch


 Usually people will write code around consumer like
 while(iter.hasNext()) {
 try {
   msg = iter.next()
   // do something
 }
 catch{
 }
 }
 
 However, the iter.hasNext() call itself can throw exceptions due to decoding 
 failures. It would be better to move the decoding to the next function call.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (KAFKA-1140) Move the decoding logic from ConsumerIterator.makeNext to next

2013-11-21 Thread Joel Koshy (JIRA)

 [ 
https://issues.apache.org/jira/browse/KAFKA-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joel Koshy updated KAFKA-1140:
--

Fix Version/s: 0.8.1

 Move the decoding logic from ConsumerIterator.makeNext to next
 --

 Key: KAFKA-1140
 URL: https://issues.apache.org/jira/browse/KAFKA-1140
 Project: Kafka
  Issue Type: Bug
Reporter: Guozhang Wang
Assignee: Guozhang Wang
 Fix For: 0.8.1


 Usually people will write code around consumer like
 while(iter.hasNext()) {
 try {
   msg = iter.next()
   // do something
 }
 catch{
 }
 }
 
 However, the iter.hasNext() call itself can throw exceptions due to decoding 
 failures. It would be better to move the decoding to the next function call.



--
This message was sent by Atlassian JIRA
(v6.1#6144)