X Tutup
The Wayback Machine - https://web.archive.org/web/20201225115645/https://github.com/src-d/gitbase/issues/807
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

Comments

@ajnavarro
Copy link
Contributor

@ajnavarro ajnavarro commented Apr 26, 2019

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 label Apr 26, 2019
@erizocosmico erizocosmico self-assigned this Apr 26, 2019
@erizocosmico
Copy link
Contributor

@erizocosmico erizocosmico commented Apr 26, 2019

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 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

@erizocosmico erizocosmico commented Apr 26, 2019

Ok, got to reproduce this.

@erizocosmico
Copy link
Contributor

@erizocosmico 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 closed this Apr 30, 2019
@ajnavarro ajnavarro reopened this May 31, 2019
@ajnavarro
Copy link
Contributor Author

@ajnavarro ajnavarro commented May 31, 2019

Not fixed in gitbase.

@kuba--
Copy link
Contributor

@kuba-- kuba-- commented May 31, 2019

@erizocosmico
Copy link
Contributor

@erizocosmico erizocosmico commented Oct 9, 2019

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.
X Tutup