shiv4289 opened a new pull request #6695: [issue 6694][AVRO ENCODE] Reset cursor if message encode fails. URL: https://github.com/apache/pulsar/pull/6695 Fixes #6694 ### Motivation If the avro encode for message fails after writing a few bytes, the cursor in the stream is not reset. The following **flush()** that would normally reset the cursor is skipped in the event of an exception. ### Modifications Add **flush()** in the finally block.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
