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

feat: print error in datanode #613

Merged
merged 2 commits into from
Feb 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions server/src/grpc/meta_event_service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use ceresdbproto::meta_event::{
use cluster::ClusterRef;
use common_types::schema::SchemaEncoder;
use common_util::{runtime::Runtime, time::InstantExt};
use log::info;
use log::{error, info};
use paste::paste;
use query_engine::executor::Executor as QueryExecutor;
use snafu::{OptionExt, ResultExt};
Expand Down Expand Up @@ -74,7 +74,10 @@ macro_rules! handle_request {

let res = handle
.await
.map_err(|e| Box::new(e) as _)
.map_err(|e| {
error!("Fail to process request from meta, err:{}", e);
Rachelint marked this conversation as resolved.
Show resolved Hide resolved
Box::new(e) as _
})
.context(ErrWithCause {
code: StatusCode::Internal,
msg: "fail to join task",
Expand Down