-
Notifications
You must be signed in to change notification settings - Fork 157
fixes #203: Broker disconnect testing and ChaosBroker #345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Conflicts: # parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/state/PartitionStateManager.java # parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/state/ShardKey.java # parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/state/ShardManager.java # parallel-consumer-core/src/test-integration/java/io/confluent/parallelconsumer/integrationTests/BrokerIntegrationTest.java # parallel-consumer-core/src/test-integration/java/io/confluent/parallelconsumer/integrationTests/MultiTopicTest.java # parallel-consumer-core/src/test-integration/java/io/confluent/parallelconsumer/integrationTests/utils/KafkaClientUtils.java # parallel-consumer-core/src/test/java/io/confluent/parallelconsumer/truth/ConsumerSubject.java
5ab39c2
to
34d0880
Compare
…timeout retry is now done by the contoller - poller passes on the timeout error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…r test was tring to share kcu's with the shared broker, but consumer's getting reused and no time to segregate. so use heavy hand approach and reevaluate when everything's working. optimise later. work now.
boolean newConsumerGroup = groupOption.equals(GroupOption.NEW_GROUP); | ||
KafkaConsumer<String, String> newConsumer = createNewConsumer(newConsumerGroup, consumerProps); | ||
lastConsumerConstructed = newConsumer; | ||
consumerProps.put(ConsumerConfig.FETCH_MAX_BYTES_CONFIG, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolve
* When using {@link org.junit.jupiter.api.Order} to order tests, this is the prefix to use to ensure integration | ||
* tests run after unit tests. | ||
*/ | ||
public static final int INTEGRATION_TEST_BASE = 100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name
* @see DedicatedBrokerIntegrationTest | ||
* @see BrokerIntegrationTest | ||
*/ | ||
public abstract class CommonBrokerIntegrationTest<BROKER extends PCTestBroker> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type var name
commonProps.put("bootstrap.servers", servers); | ||
String servers = kafkaContainer.getDirectBootstrapServers(); | ||
commonProps.put(BOOTSTRAP_SERVERS_CONFIG, servers); | ||
commonProps.put(CommonClientConfigs.DEFAULT_API_TIMEOUT_MS_CONFIG, "5000"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...
} | ||
|
||
protected UTILS_TYPE createClientUtils() { | ||
// todo remove cast |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolve
Closing - Stale. |
To investigate reported behaviour in #203
Checklist