Skip to content

Commit

Permalink
[eclipse-hono#8] Improve comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Abel Buechner-Mihaljevic <[email protected]>
  • Loading branch information
b-abel committed Feb 12, 2021
1 parent e022788 commit c7ffbed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class KafkaDownstreamMessage implements DownstreamMessage<KafkaMessageCon
*
* @param record The record.
* @throws NullPointerException if the record is {@code null}.
* @throws IllegalArgumentException if the topic does not contain a tenant id.
*/
public KafkaDownstreamMessage(final KafkaConsumerRecord<String, Buffer> record) {
Objects.requireNonNull(record);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ private void handleBatch(final KafkaConsumerRecords<String, Buffer> records) {
addToCurrentOffsets(record);
} catch (final RuntimeException messageHandlingError) {
LOG.debug("Message handler failed", messageHandlingError);
// will commit the offset of the failed record and then resume polling (will include failed record)
// resume with committing the current offsets and then polling (failed record will be polled again)
break;
}
}
Expand Down

0 comments on commit c7ffbed

Please sign in to comment.