Skip to content
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

Backport rpc errors #45

Open
wants to merge 1 commit into
base: hubspot-client
Choose a base branch
from
Open

Conversation

agkogkakis
Copy link

@agkogkakis agkogkakis commented Apr 3, 2023

These rpc errors are used by Vitess14 and are missing from our fork.
The end result is that some errors returned from the vtgate are interpreted as Unrecognized errors and not as CLUSTER_EVENT, READ_ONLY errors by the java client

Error prior to back port

	at io.vitess.jdbc.VitessConnection$1.run(VitessConnection.java:537)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.sql.SQLNonTransientException: Vitess vtgate error: message: "vttablet: rpc error: code = Code(17) desc = operation not allowed in state NOT_SERVING"
code: UNKNOWN_ENUM_VALUE_Code_17

Error with back port

	... 3 common frames omitted
Caused by: java.util.concurrent.ExecutionException: java.sql.SQLNonTransientException: Vitess vtgate error: message: "vttablet: rpc error: code = Code(17) desc = operation not allowed in state NOT_SERVING"
code: CLUSTER_EVENT

@makmanalp
Copy link

🚢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants