feat: unify servers and mysql server in datanode (#172)

* address PR comments

address PR comments

use 3306 for mysql server's default port

upgrade metric to version 0.20

move crate "servers" out of "common"

make mysql io threads count configurable in config file

add snafu backtrace for errors with source

use common-server error for mysql server

add test for grpc server

refactor testing codes

fix rustfmt check

start mysql server in datanode

move grpc server codes from datanode to common-servers

feat: unify servers

* rebase develop and resolve conflicts

* remove an unnecessary todo

Co-authored-by: luofucong <luofucong@greptime.com>
This commit is contained in:
LFC
2022-08-17 14:29:12 +08:00
committed by GitHub
parent 6d23118aa0
commit ccda17248e
53 changed files with 1036 additions and 768 deletions

View File

@@ -65,7 +65,7 @@ impl Database {
let header = obj_result.header.context(MissingHeaderSnafu)?;
if StatusCode::is_success(header.code) {
if !StatusCode::is_success(header.code) {
return DataNodeSnafu {
code: header.code,
msg: header.err_msg,

View File

@@ -4,6 +4,6 @@ mod error;
pub use self::{
client::Client,
database::Database,
database::{Database, ObjectResult},
error::{Error, Result},
};