-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Feature][Connector-V2]Support Doris Fe Node HA #8311
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.
We should make sure the random and ha be supported at the same time. Random pick the address which can be connected.
OK, I will modify it according to this idea later |
done. |
| } catch (DorisConnectorException e) { | ||
| if (i == feNodesNum - 1) { | ||
| throw new DorisConnectorException( | ||
| DorisConnectorErrorCode.REST_SERVICE_FAILED, e); | ||
| } | ||
| } |
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.
Can we sure the exception is must cause by FE unavailable?
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.
Can we sure the exception is must cause by FE unavailable?
I updated the code to catch other potential exceptions.
Carl-Zhou-CN
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.
+1
Purpose of this pull request
The current logic is to randomly select a FE node to connect to, and if it fails, Doris is considered unavailable. We should optimize this by continuously retrying all user-configured FE nodes.
Does this PR introduce any user-facing change?
no
How was this patch tested?
exist tests
Check list
New License Guide
release-note.