-
Notifications
You must be signed in to change notification settings - Fork 3.2k
K2 testing final #5198
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
base: master
Are you sure you want to change the base?
K2 testing final #5198
Conversation
Conflicts: tests/0011-produce_batch.c
…lete.retention.ms
…djusting timeout handling for cloud environments. Added checks for partition existence and refined error handling for GROUP resource configurations, ensuring compatibility with managed Kafka services.
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.
Mostly looks OK, left some minor comments.
tests/test.c
Outdated
| * @brief Sleep with configurable multiplier (only if multiplier > 0) | ||
| * @param wait_time Sleep time in seconds | ||
| */ | ||
| void sleep_for(int wait_time) { |
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.
Rename this to test_, see the other comments made on other test files regarding this function
|
|
||
| RdKafka::MessageTimestamp ts = msg.timestamp(); | ||
| if (ts.type != RdKafka::MessageTimestamp::MSG_TIMESTAMP_CREATE_TIME) | ||
| if (ts.type != RdKafka::MessageTimestamp::MSG_TIMESTAMP_CREATE_TIME && |
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.
is this a confirmed issue in K2? If so add a comment. AK behaves as expected, if we have timestamp type set as create time correctly, then it will return it correctly also.
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.
Yes its confirmed bug in K2
…ed metadata synchronization across tests.
…etadata_propagation for delay multipliers.
…ments to replica handling, consumer subscription order, and configuration parameters for topic creation.
…g in tests to ensure stability in cloud environments.
This PR refactors the librdkafka test suite to improve cloud compatibility by adding configurable options in
test.conf. This enables better test portability and maintainability across different Kafka environments.Changes
1. Configurable Test Framework
test.skip.idempotent: Skip tests requiring idempotent producer (replaces-Iflag)test.supported.acks: Configure supported acknowledgment values (e.g.,-1,0,1)test.sleep.multiplier: Configurable sleep multiplier for different environments. Multiplies explicit sleep_for() delays for cluster state propagation (set 0 to skip sleeps), different from test.timeout.multiplier which multiplies API operation timeouts (can't be disabled).test.timeout.multiplier: Unified timeout scaling (existing feature, now consistently used)test.skip.numbers: Skip specific tests by number (comma-separated list)2. Topic Cleanup
3. Replication Factor
-1)4. Preprocessor Directives for Version Compatibility
🔧 Configuration Examples