mjsax commented on code in PR #17710:
URL: https://github.com/apache/kafka/pull/17710#discussion_r1831958584
##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamTaskTest.java:
##########
@@ -400,36 +440,38 @@ public void
shouldAutoOffsetResetIfNoCommittedOffsetFound() {
task.addPartitionsForOffsetReset(Collections.singleton(partition1));
final AtomicReference<AssertionError> shouldNotSeek = new
AtomicReference<>();
- final MockConsumer<byte[], byte[]> consumer = new MockConsumer<byte[],
byte[]>(OffsetResetStrategy.EARLIEST) {
- @Override
- public void seek(final TopicPartition partition, final long
offset) {
- final AssertionError error = shouldNotSeek.get();
- if (error != null) {
- throw error;
+ try (final MockConsumer<byte[], byte[]> consumer = new
MockConsumer<>(OffsetResetStrategy.EARLIEST) {
Review Comment:
side cleanup
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]