Git Product home page Git Product logo

Comments (7)

wesleywu avatar wesleywu commented on August 26, 2024

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:

  1. mypackage/myservice.(*MyServiceImpl).GetList
    /Users/admin/Documents/my_path_to.go:105
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. mypackage/model._MyService_GetList_Handler
    /Users/admin/my_path_to_triple.pb.go:167
  21. github.com/dubbogo/grpc-go.(*Server).processUnaryRPC
    /Users/admin/go/pkg/mod/github.com/dubbogo/[email protected]/server.go:1298
  22. github.com/dubbogo/grpc-go.(*Server).handleStream
    /Users/admin/go/pkg/mod/github.com/dubbogo/[email protected]/server.go:1670
  23. 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.

ilaotan avatar ilaotan commented on August 26, 2024

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.

LaurenceLiZhixin avatar LaurenceLiZhixin commented on August 26, 2024

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:

  1. mypackage/myservice.(*MyServiceImpl).GetList
    /Users/admin/Documents/my_path_to.go:105
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. mypackage/model._MyService_GetList_Handler
    /Users/admin/my_path_to_triple.pb.go:167
  21. github.com/dubbogo/grpc-go.(*Server).processUnaryRPC
    /Users/admin/go/pkg/mod/github.com/dubbogo/[email protected]/server.go:1298
  22. github.com/dubbogo/grpc-go.(*Server).handleStream
    /Users/admin/go/pkg/mod/github.com/dubbogo/[email protected]/server.go:1670
  23. 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.

LaurenceLiZhixin avatar LaurenceLiZhixin commented on August 26, 2024

Does this bug still exists in latest master branch? @baymax55

from dubbo-go-samples.

ilaotan avatar ilaotan commented on August 26, 2024

我遇到一样的问题, 经过排查,triple协议走我本地代理了. 你可以查查

from dubbo-go-samples.

wesleywu avatar wesleywu commented on August 26, 2024

Thanks. Setting the consumer timeout fixed the problem. @LaurenceLiZhixin

from dubbo-go-samples.

baymax55 avatar baymax55 commented on August 26, 2024

Does this bug still exists in latest master branch? @baymax55

Thanks for your help, it works on

from dubbo-go-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.