Comments (7)
I'm experiencing similar problem with "context deadline exceeded".
I've wrote a provider and a consumer in Go.
When the provider executed a long lasting (which takes 3 seconds or more to finish) Sql command, for example
select count(*) from my_table where non_indexed_field = 'xxx';
the provider threw an error:
[ERRO] context deadline exceeded, SELECT COUNT(1) FROM
my_table
WHERE (non_indexed_field = 'xxx')
Stack:
- mypackage/myservice.(*MyServiceImpl).GetList
/Users/admin/Documents/my_path_to.go:105- dubbo.apache.org/dubbo-go/v3/common/proxy/proxy_factory.(*ProxyInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/common/proxy/proxy_factory/default.go:145- dubbo.apache.org/dubbo-go/v3/registry/protocol.(*invokerDelegate).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/registry/protocol/protocol.go:465- dubbo.apache.org/dubbo-go/v3/filter/graceful_shutdown.(*providerGracefulShutdownFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/graceful_shutdown/provider_filter.go:67- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/exec_limit.(*executeLimitFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/exec_limit/filter.go:118- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/generic.(*genericServiceFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/generic/service_filter.go:63- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/tps.(*tpsLimitFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/tps/filter.go:82- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/accesslog.(*Filter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/accesslog/filter.go:109- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/token.(*tokenFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/token/filter.go:71- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/metrics.(*Filter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/metrics/filter.go:49- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/echo.(*echoFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/echo/filter.go:65- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- mypackage/model._MyService_GetList_Handler
/Users/admin/my_path_to_triple.pb.go:167- github.com/dubbogo/grpc-go.(*Server).processUnaryRPC
/Users/admin/go/pkg/mod/github.com/dubbogo/[email protected]/server.go:1298- github.com/dubbogo/grpc-go.(*Server).handleStream
/Users/admin/go/pkg/mod/github.com/dubbogo/[email protected]/server.go:1670- github.com/dubbogo/grpc-go.(*Server).serveStreams.func1.2
/Users/admin/go/pkg/mod/github.com/dubbogo/[email protected]/server.go:934
from dubbo-go-samples.
triple+hessian2 ,same problem,use: dubbo-go-samples/rpc/triple/hessian2/go-client
update:
Solved, this request walked my local agent, and then abroad
from dubbo-go-samples.
I'm experiencing similar problem with "context deadline exceeded". I've wrote a provider and a consumer in Go. When the provider executed a long lasting (which takes 3 seconds or more to finish) Sql command, for example
select count(*) from my_table where non_indexed_field = 'xxx';
the provider threw an error:
[ERRO] context deadline exceeded, SELECT COUNT(1) FROM
my_table
WHERE (non_indexed_field = 'xxx')
Stack:
- mypackage/myservice.(*MyServiceImpl).GetList
/Users/admin/Documents/my_path_to.go:105- dubbo.apache.org/dubbo-go/v3/common/proxy/proxy_factory.(*ProxyInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/common/proxy/proxy_factory/default.go:145- dubbo.apache.org/dubbo-go/v3/registry/protocol.(*invokerDelegate).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/registry/protocol/protocol.go:465- dubbo.apache.org/dubbo-go/v3/filter/graceful_shutdown.(*providerGracefulShutdownFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/graceful_shutdown/provider_filter.go:67- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/exec_limit.(*executeLimitFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/exec_limit/filter.go:118- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/generic.(*genericServiceFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/generic/service_filter.go:63- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/tps.(*tpsLimitFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/tps/filter.go:82- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/accesslog.(*Filter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/accesslog/filter.go:109- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/token.(*tokenFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/token/filter.go:71- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/metrics.(*Filter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/metrics/filter.go:49- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- dubbo.apache.org/dubbo-go/v3/filter/echo.(*echoFilter).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/filter/echo/filter.go:65- dubbo.apache.org/dubbo-go/v3/protocol/protocolwrapper.(*FilterInvoker).Invoke
/Users/admin/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/protocol/protocolwrapper/protocol_filter_wrapper.go:128- mypackage/model._MyService_GetList_Handler
/Users/admin/my_path_to_triple.pb.go:167- github.com/dubbogo/grpc-go.(*Server).processUnaryRPC
/Users/admin/go/pkg/mod/github.com/dubbogo/[email protected]/server.go:1298- github.com/dubbogo/grpc-go.(*Server).handleStream
/Users/admin/go/pkg/mod/github.com/dubbogo/[email protected]/server.go:1670- github.com/dubbogo/grpc-go.(*Server).serveStreams.func1.2
/Users/admin/go/pkg/mod/github.com/dubbogo/[email protected]/server.go:934
@wesleywu
try adding request-timeout in your dubbogo.yml
consumer:
request-timeout: 15s
registry-ids:
- demoZK
references:
"ComplexProvider":
from dubbo-go-samples.
Does this bug still exists in latest master branch? @baymax55
from dubbo-go-samples.
我遇到一样的问题, 经过排查,triple协议走我本地代理了. 你可以查查
from dubbo-go-samples.
Thanks. Setting the consumer timeout fixed the problem. @LaurenceLiZhixin
from dubbo-go-samples.
Does this bug still exists in latest master branch? @baymax55
Thanks for your help, it works on
from dubbo-go-samples.
Related Issues (20)
- 如何配置accesslog
- dubbo-go generic client 3.0.4 HOT 1
- Java-server Demo 文件报错
- [Add New Sample] triple protocol with idl and pb HOT 3
- [Add New Sample] triple protocol with idl and json HOT 2
- [Add New Sample]triple protocol with hessian HOT 1
- [Add New Sample] triple protocol with msgpack HOT 1
- [Add New Sample] config file (dubbogo.yml) HOT 1
- [Add New Sample] java interop - service discovery HOT 2
- [Add New Sample] java interop - triple protocol HOT 1
- [Add New Sample] java interop - dubbo protocol HOT 1
- [Add New Sample] triple and grpc interop HOT 2
- [Add New Sample] ecosystem - gateway HOT 1
- [Add New Sample] ecosystem - sentinel
- [Add New Sample] ecosystem - seata HOT 1
- 使用泛化示例,dubbo-go3.1.1 调用 java server 2.6.x,提示 No provider available for the service HOT 1
- master分支下的helloworld示例正常,但是java_interop/protobuf-triple/java/java-client无法运行 HOT 5
- java_interop示例下的Java-server和java-client之间不能互通,二者使用的dubbo.version也不一样,太粗糙了! HOT 2
- helloworld/README.md curl part run fail
- 应用级泛化调用 go client 调用 java service 调不通 [tag router] invokers from previous router is empty
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dubbo-go-samples.