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

Error when connecting from JDBC MariaDB driver #807

Open
ajnavarro opened this issue Apr 26, 2019 · 7 comments
Open

Error when connecting from JDBC MariaDB driver #807

ajnavarro opened this issue Apr 26, 2019 · 7 comments
Assignees
Labels
3rd-party blocked Some other issue is blocking this bug Something isn't working

Comments

@ajnavarro
Copy link
Contributor

Error on gitbase side:

gsc-gitbase                        | time="2019-04-26T08:22:34Z" level=info msg="NewConnection: client 1"
gsc-gitbase                        | time="2019-04-26T08:22:34Z" level=error msg="Cannot parse client handshake response from client 1 (172.19.0.4:59740): Code: INTERNAL\nparseClientHandshakePacket: can't read connection attribute value\n"

Error from the client side:

gsc-gitbase-spark-connector-jupyter | Exception in thread "main" java.sql.SQLNonTransientConnectionException: Could not connect to gitbase:3306 : unexpected end of stream, read 0 bytes from 4 (socket was closed by server)
gsc-gitbase-spark-connector-jupyter |   at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:234)
gsc-gitbase-spark-connector-jupyter |   at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:165)
gsc-gitbase-spark-connector-jupyter |   at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1199)
gsc-gitbase-spark-connector-jupyter |   at org.mariadb.jdbc.internal.util.Utils.retrieveProxy(Utils.java:560)
gsc-gitbase-spark-connector-jupyter |   at org.mariadb.jdbc.MariaDbConnection.newConnection(MariaDbConnection.java:174)
...

Only happening with the latest v0.20.0-beta4 release

@ajnavarro ajnavarro added the bug Something isn't working label Apr 26, 2019
@erizocosmico erizocosmico self-assigned this Apr 26, 2019
@erizocosmico
Copy link
Contributor

What query are you making? Can you provide more specific details. I've been trying to reproduce this with both 0.20.0-beta4 and master and it works for me.

@ajnavarro
Copy link
Contributor Author

ajnavarro commented Apr 26, 2019

From https://github.com/src-d/gitbase-spark-connector repo:

  • go to docker-compose.yml
    • change srcd/gitbase:v0.20.0-beta3 to srcd/gitbase:v0.20.0-beta4
    • change /path/to/repos to a valid path with repositories
  • execute docker-compose up
  • go to localhost:8080
  • try to execute first notebook page
  • error appears

screenshot-localhost-8080-2019 04 26-12-15-07

@erizocosmico
Copy link
Contributor

Ok, got to reproduce this.

@erizocosmico
Copy link
Contributor

erizocosmico commented Apr 30, 2019

There's an error parsing connection attributes, which has been reported for a couple months:
vitessio/vitess#4603

I added more details to the issue and a reproduction case.

We have two options here:

  • Try to fix the issue in vitess.
  • Wait until they fix it, rollback to go-vitess 1.4.0 and scan manually for "SHOW SCHEMAS" instead of using the builtin support in vitess we added.

I think we should fix vitess, but no idea how much that's gonna take.

WDYT @ajnavarro?

@ajnavarro ajnavarro reopened this May 31, 2019
@ajnavarro
Copy link
Contributor Author

Not fixed in gitbase.

@erizocosmico erizocosmico added the blocked Some other issue is blocking this label May 31, 2019
@kuba--
Copy link
Contributor

kuba-- commented May 31, 2019

vitessio/vitess#4897

@erizocosmico
Copy link
Contributor

Will be fixed once we upgrade to latest vitess version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd-party blocked Some other issue is blocking this bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants