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

dubbo2.7.2 提供者接口级别超时时间会覆盖方法级别超时时间 #4571

Closed
18702524676 opened this issue Jul 15, 2019 · 4 comments
Milestone

Comments

@18702524676
Copy link

@Service(timeout = 2000,retries = 3,methods = { @Method(name = "getNewUserAllMap",timeout = 50000,retries = 2), @Method(name = "getUserProfilesMap",timeout = 10000,retries = 3) })
消费端没有配置超时时间,通过上述配置,getNewUserAllMap,getUserProfilesMap的超时时间都以Service配置的超时时间为准,与官方描述的超时时间优先级不符,dubbo版本2.7.2,求解决

@cvictory
Copy link
Contributor

我觉得这个方式是对的,consumer端没有配置超时时间,本就应该以服务端为准,不然服务端的配置根本没有用了?

@18702524676
Copy link
Author

我觉得这个方式是对的,消费者端没有配置超时时间,本就应该以服务端为准,不然服务端的配置根本没有用了?

我在服务端给方法配置了超时时间,但是方法的超时时间没有生效,应该是服务端的方法级优先与服务端的类级

cvictory added a commit to cvictory/dubbo that referenced this issue Jul 24, 2019
@beiwei30 beiwei30 added this to the 2.7.4 milestone Aug 1, 2019
@beiwei30
Copy link
Member

beiwei30 commented Aug 1, 2019

pls. verify, it should have been fixed on the main trunk.

@beiwei30 beiwei30 closed this as completed Aug 1, 2019
@lizhuquan0769
Copy link

我使用的spring cloud alibaba 2.2.7,dubbo版本是2.7.13, 也出现这个问题,请问怎么解决了,method级别设置根本无效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants