[ https://issues.apache.org/jira/browse/KAFKA-3728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15293278#comment-15293278 ]
ASF GitHub Bot commented on KAFKA-3728: --------------------------------------- GitHub user edoardocomar opened a pull request: https://github.com/apache/kafka/pull/1414 KAFKA-3728 EndToEndAuthorizationTest offsets_topic misconfigured Set OffsetsTopicReplicationFactorProp to 3 like MinInSyncReplicasProp and OffsetCommitRequiredAcksProp to 1 to avoid timeouts unit test for consumer that subscribes added You can merge this pull request into a Git repository by running: $ git pull https://github.com/edoardocomar/kafka KAFKA-3728 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1414.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1414 ---- commit eab6d3f7aa1facc873332228fa32f35e98c02b2d Author: Edoardo Comar <eco...@uk.ibm.com> Date: 2016-05-19T15:52:15Z KAFKA-3728 EndToEndAuthorizationTest offsets_topic misconfigured Set OffsetsTopicReplicationFactorProp to 3 like MinInSyncReplicasProp and OffsetCommitRequiredAcksProp to 1 to avoid timeouts ---- > EndToEndAuthorizationTest offsets_topic misconfigured > ----------------------------------------------------- > > Key: KAFKA-3728 > URL: https://issues.apache.org/jira/browse/KAFKA-3728 > Project: Kafka > Issue Type: Bug > Reporter: Edoardo Comar > > A consumer that is manually assigned a topic-partition is able to consume > messages that a consumer that subscribes to the topic can not. > To reproduce : take the test > EndToEndAuthorizationTest.testProduceConsume > (eg the SaslSslEndToEndAuthorizationTest implementation) > > it passes ( = messages are consumed) > if the consumer is assigned the single topic-partition > consumers.head.assign(List(tp).asJava) > but fails > if the consumer subscribes to the topic - changing the line to : > consumers.head.subscribe(List(topic).asJava) > The failure when subscribed shows this error about synchronization: > org.apache.kafka.common.KafkaException: Unexpected error from SyncGroup: > Messages are rejected since there are fewer in-sync replicas than required. > at > org.apache.kafka.clients.consumer.internals.AbstractCoordinator$SyncGroupResponseHandler.handle(AbstractCoordinator.java:455) > The test passes in both cases (subscribe and assign) with the setting > this.serverConfig.setProperty(KafkaConfig.MinInSyncReplicasProp, "1") -- This message was sent by Atlassian JIRA (v6.3.4#6332)