Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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.