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

[Bug] odbc for mysql occur error #7279

Open
2 of 3 tasks
hlh5 opened this issue Dec 2, 2021 · 1 comment
Open
2 of 3 tasks

[Bug] odbc for mysql occur error #7279

hlh5 opened this issue Dec 2, 2021 · 1 comment
Labels
kind/fix Categorizes issue or PR as related to a bug.

Comments

@hlh5
Copy link

hlh5 commented Dec 2, 2021

Search before asking

  • I had searched in the issues and found no similar issues.

Version

0.15.0-rc04

What's Wrong?

eg:
#1. odbc config
more conf/odbcinst.ini

Setup from the unixODBC package

[MySQL ODBC 8.0 Driver]
Description = ODBC for MySQL
Driver = /usr/local/lib/libmyodbc8w.so
FileUsage = 1

#2. sql
CREATE EXTERNAL RESOURCE mysql55
PROPERTIES (
"type" = "odbc_catalog",
"host" = "192.168.3.121",
"port" = "3306",
"user" = "root",
"password" = "xxx",
"odbc_type" = "mysql",
"driver" = "MySQL ODBC 8.0 Driver"
);

CREATE EXTERNAL TABLE ext_test (
id int(11) NOT NULL ,
uid int(11) DEFAULT NULL,
ctime datetime NOT NULL
) ENGINE=ODBC
PROPERTIES (
"odbc_catalog_resource" = "mysql55",
"database" = "hlh",
"table" = "tyy"
);

mysql> select * from ext_test;
ERROR 1064 (HY000): RpcException, msg: io.grpc.StatusRuntimeException: UNAVAILABLE: Network closed for unknown reason

#------------------------------------------------
doris 0.14 is run normal,but upgrade 0.15 encountered above error,then be node would crash

What You Expected?

odbc for mysql run normal

How to Reproduce?

eg:
#1. odbc config
more conf/odbcinst.ini

Setup from the unixODBC package

[MySQL ODBC 8.0 Driver]
Description = ODBC for MySQL
Driver = /usr/local/lib/libmyodbc8w.so
FileUsage = 1

#2. sql
CREATE EXTERNAL RESOURCE mysql55
PROPERTIES (
"type" = "odbc_catalog",
"host" = "192.168.3.121",
"port" = "3306",
"user" = "root",
"password" = "xxx",
"odbc_type" = "mysql",
"driver" = "MySQL ODBC 8.0 Driver"
);

CREATE EXTERNAL TABLE ext_test (
id int(11) NOT NULL ,
uid int(11) DEFAULT NULL,
ctime datetime NOT NULL
) ENGINE=ODBC
PROPERTIES (
"odbc_catalog_resource" = "mysql55",
"database" = "hlh",
"table" = "tyy"
);

mysql> select * from ext_test;
ERROR 1064 (HY000): RpcException, msg: io.grpc.StatusRuntimeException: UNAVAILABLE: Network closed for unknown reason

#------------------------------------------------
doris 0.14 is run normal,but upgrade 0.15 encountered above error,then be node would crash

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@hlh5 hlh5 added the kind/fix Categorizes issue or PR as related to a bug. label Dec 2, 2021
@JoshTseeee
Copy link

I also encountered this problem before, is there any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/fix Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants