[ https://issues.apache.org/jira/browse/KAFKA-5537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16070742#comment-16070742 ]
Michael Andre Pearce edited comment on KAFKA-5537 at 6/30/17 9:26 PM: ---------------------------------------------------------------------- This is why we extracted the test case so its reproducible for anyone. Essentially you just need the following dependencies: (also it makes it easy so you can just switch the kafka version too) <properties> <kafka.version>0.11.0.0</kafka.version> <kafka-junit.version>3.0.2</kafka-junit.version> <curator.version>3.3.0</curator.version> <guava.version>21.0</guava.version> <junit.version>4.12</junit.version> </properties> <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> <version>${kafka.version}</version> </dependency> <dependency> <groupId>com.github.charithe</groupId> <artifactId>kafka-junit</artifactId> <version>${kafka-junit.version}</version> <scope>test</scope> <exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>log4j-over-slf4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-test</artifactId> <version>${curator.version}</version> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>${guava.version}</version> </dependency> <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.11</artifactId> <version>${kafka.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> was (Author: michael.andre.pearce): This is why we extracted the test case so its reproducible for anyone. Essentially you just need the following dependencies: (and you can just switch the kafka version too.) <properties> <kafka.version>0.11.0.0</kafka.version> <kafka-junit.version>3.0.2</kafka-junit.version> <curator.version>3.3.0</curator.version> <guava.version>21.0</guava.version> <junit.version>4.12</junit.version> </properties> <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> <version>${kafka.version}</version> </dependency> <dependency> <groupId>com.github.charithe</groupId> <artifactId>kafka-junit</artifactId> <version>${kafka-junit.version}</version> <scope>test</scope> <exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>log4j-over-slf4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-test</artifactId> <version>${curator.version}</version> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>${guava.version}</version> </dependency> <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.11</artifactId> <version>${kafka.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> > Subscribe Earliest is not working as in 0.10.2.1 > ------------------------------------------------ > > Key: KAFKA-5537 > URL: https://issues.apache.org/jira/browse/KAFKA-5537 > Project: Kafka > Issue Type: Bug > Affects Versions: 0.11.0.0 > Reporter: Michael Andre Pearce > Priority: Critical > Attachments: KafkaSub.java, KafkaSubLatest.java > > > We have seen issue with subscription where auto offset when set to earliest > (and also latest) does not behave the same as in 0.10.2.1 release. > We have managed to create a repeatable test for this, which passes when > pointing to 0.10.2.1 broker. -- This message was sent by Atlassian JIRA (v6.4.14#64029)