-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Fix][E2E] Fixed e2e test cases of Kafka did not work as expected #9359
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
Hisoka-X
left a comment
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.
Thanks @WenDing-Y
...tor-v2-e2e/connector-kafka-e2e/src/test/resources/kafka/kafkasource_earliest_to_console.conf
Show resolved
Hide resolved
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.
Pull Request Overview
This pull request fixes Kafka error tests and updates test configurations by adding row_count validations in multiple Kafka configuration files. It also adjusts topic naming and introduces new topic management and offset commit logic in the Kafka integration test suite.
- Added row_rules configuration entries to validate row counts across several Kafka .conf files.
- Updated topic names and consumer group configuration in Kafka source tests.
- Enhanced Kafka integration tests with AdminClient topic creation and a new commitOffset method.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| seatunnel-e2e/seatunnel-connector-v2-e2e/connector-kafka-e2e/src/test/resources/kafka/kafkasource_timestamp_to_console.conf | Added row_rules validation configuration. |
| seatunnel-e2e/seatunnel-connector-v2-e2e/connector-kafka-e2e/src/test/resources/kafka/kafkasource_specific_offsets_to_console.conf | Added row_rules validation configuration. |
| seatunnel-e2e/seatunnel-connector-v2-e2e/connector-kafka-e2e/src/test/resources/kafka/kafkasource_group_offset_to_console.conf | Added row_rules and updated consumer group configuration. |
| seatunnel-e2e/seatunnel-connector-v2-e2e/connector-kafka-e2e/src/test/resources/kafka/kafkasource_format_error_handle_way_skip_to_console.conf | Added row_rules with MAX_ROW to validate error handling in format tests. |
| seatunnel-e2e/seatunnel-connector-v2-e2e/connector-kafka-e2e/src/test/resources/kafka/kafkasource_endTimestamp_to_console.conf | Updated topic configuration. |
| seatunnel-e2e/seatunnel-connector-v2-e2e/connector-kafka-e2e/src/test/resources/kafka/kafkasource_earliest_to_console.conf | Added row_rules validation configuration. |
| seatunnel-e2e/seatunnel-connector-v2-e2e/connector-kafka-e2e/src/test/java/org/apache/seatunnel/e2e/connector/kafka/KafkaIT.java | Introduced AdminClient topic creation and a new commitOffset method for offset management. |
| ] | ||
| row_rules = [ | ||
| { | ||
| rule_type = MAX_ROW |
Copilot
AI
May 26, 2025
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.
[nitpick] Consider adding an inline comment to explain the usage of the MAX_ROW rule with a rule_value of 0 to clarify its purpose in this error handling test configuration.
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.
done
...-e2e/connector-kafka-e2e/src/test/java/org/apache/seatunnel/e2e/connector/kafka/KafkaIT.java
Outdated
Show resolved
Hide resolved
| row_rules = [ | ||
| { | ||
| rule_type = MIN_ROW | ||
| rule_value = 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.
| rule_value = 1 | |
| rule_value = 100 |
set MAX_ROW and MIN_ROW as same.
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.
i known,all test updated
Hisoka-X
left a comment
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.
Thanks @WenDing-Y
Purpose of this pull request
fix #9358
Does this PR introduce any user-facing change?
update kafka test config add row_count validate
How was this patch tested?
Check list
New License Guide