Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang committed Feb 27, 2024
1 parent d35c2ee commit b7eb935
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions e2e_test/error_ui/simple/main.slt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@ Caused by:
Near "selet"


statement error
create function int_42() returns int as int_42 using link 'remotehost:8815';
----
db error: ERROR: Failed to run the query

Caused by:
Flight service error: failed to create LoadBalancedChannel, address: remotehost:8815, err: failed to resolve IPs: Failed to resolve ServiceDefinition: failed to resolve ips from host: no record found for Query { name: Name("remotehost."), query_type: AAAA, query_class: IN }


statement error
create function int_42() returns int as int_42 using link '55.55.55.55:5555';
----
db error: ERROR: Failed to run the query

Caused by these errors (recent errors listed first):
1: failed to check UDF signature
2: failed to send requests to UDF service
3: status: Unavailable, message: "error trying to connect: tcp connect error: deadline has elapsed", details: [], metadata: MetadataMap { headers: {} }
4: transport error
5: error trying to connect
6: tcp connect error
7: deadline has elapsed


statement error
alter system set not_exist_key to value;
----
Expand Down
2 changes: 2 additions & 0 deletions src/expr/udf/src/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ use tonic::transport::Channel;
use crate::metrics::GLOBAL_METRICS;
use crate::{Error, Result};

/// Used for lazy udf client connections
const DNS_PROBE_INTERVAL_SECS: u64 = 5;
/// Used for eager udf client connections
const EAGER_DNS_PROBE_INTERVAL_SECS: u64 = 5;
const REQUEST_TIMEOUT_SECS: u64 = 5;
const CONNECT_TIMEOUT_SECS: u64 = 5;
Expand Down

0 comments on commit b7eb935

Please sign in to comment.