-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix: fix transaction route on multi host #266
Conversation
|
||
public static String uriRouteHint(String URI) { | ||
// Encode the URI using Base64 | ||
String encodedUri = Base64.getEncoder().encodeToString(URI.getBytes()); |
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.
a xxhash might be possible here, might allow making this route hint shorter.
(not needed in this pr, could pick it up if one day some people complains it's too long qwq)
return false; | ||
} | ||
|
||
private List<URI> parseURI(List<DiscoveryNode> nodes) throws SQLException { |
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.
Add some UT for discoverUris
and parseURI
function?
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 will write another PR fully test on those auto discovery related functions.
databend-jdbc/src/main/java/com/databend/jdbc/DatabendConnection.java
Outdated
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.
LGTM, @hantmac PTAL
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.
LGTM 🚀
* fix: fix transaction route on multi host * chore: fix flaky cluster key * chore: ignore useless code * chore: add more comment
No description provided.