Skip to content

Conversation

@WenDing-Y
Copy link
Contributor

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

@github-actions github-actions bot added the e2e label May 23, 2025
@WenDing-Y WenDing-Y changed the title [FIX][e2e] fix kafka error test [BugFIX][e2e] fix kafka error test May 23, 2025
@WenDing-Y WenDing-Y changed the title [BugFIX][e2e] fix kafka error test [FIX][e2e] fix kafka error test May 23, 2025
Copy link
Member

@Hisoka-X Hisoka-X left a comment

Choose a reason for hiding this comment

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

Thanks @WenDing-Y

@nielifeng nielifeng requested a review from Copilot May 26, 2025 03:40
Copy link
Contributor

Copilot AI left a 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
Copy link

Copilot AI May 26, 2025

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.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

row_rules = [
{
rule_type = MIN_ROW
rule_value = 1
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
rule_value = 1
rule_value = 100

set MAX_ROW and MIN_ROW as same.

Copy link
Contributor Author

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

Copy link
Member

@Hisoka-X Hisoka-X left a comment

Choose a reason for hiding this comment

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

Thanks @WenDing-Y

@Hisoka-X Hisoka-X changed the title [FIX][e2e] fix kafka error test [Fix][E2E] Fixed e2e test cases of Kafka did not work as expected May 28, 2025
@hailin0 hailin0 merged commit c92e141 into apache:dev May 28, 2025
4 checks passed
@WenDing-Y WenDing-Y deleted the fix-kafka-test-error branch June 6, 2025 09:58
dybyte pushed a commit to dybyte/seatunnel that referenced this pull request Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [seatunnel-e2e] kafka test class have error

3 participants