Skip to content

Conversation

astubbs
Copy link
Contributor

@astubbs astubbs commented Jul 12, 2022

To investigate reported behaviour in #203

Checklist

  • Documentation (if applicable)
  • Changelog

# 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
@astubbs astubbs force-pushed the bugs/broker-disconnect branch from 5ab39c2 to 34d0880 Compare November 3, 2022 14:54
@astubbs astubbs marked this pull request as ready for review November 24, 2022 14:27
@astubbs astubbs changed the title Broker disconnect testing fixes #203: Broker disconnect testing and ChaosBroker Nov 24, 2022
Copy link
Contributor Author

@astubbs astubbs left a 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);
Copy link
Contributor Author

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;
Copy link
Contributor Author

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> {
Copy link
Contributor Author

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");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why

Copy link
Contributor Author

@astubbs astubbs left a 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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolve

@eddyv
Copy link
Member

eddyv commented Jun 15, 2023

Closing - Stale.

@eddyv eddyv closed this Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: ConsumerOffsetCommitter goes into failure state after broker downtime

2 participants