Skip to content

Conversation

@xiaochen-zhou
Copy link
Contributor

Purpose of this pull request

Make sure the random and ha be supported at the same time. Random pick the address which can be connected.

referring to the implementation in the Doris connector: https://github.com/apache/seatunnel/pull/8311#pullrequestreview-2507771700_

Does this PR introduce any user-facing change?

no

How was this patch tested?

exists test

Check list

fe address which can be connected
Hisoka-X
Hisoka-X previously approved these changes Mar 6, 2025
private QueryPlan getQueryPlan(String querySQL, String table) {

List<String> nodeUrls = sourceConfig.getNodeUrls();
Collections.shuffle(nodeUrls);
Copy link
Member

Choose a reason for hiding this comment

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

Let's add some comment on here. Make sure other devs know why we need shuffle.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's add some comment on here. Make sure other devs know why we need shuffle.

Done.

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.

@hailin0 hailin0 merged commit bef7607 into apache:dev Mar 7, 2025
7 checks passed
@xiaochen-zhou xiaochen-zhou deleted the sr_fe_random branch August 3, 2025 08:13
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.

3 participants