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

标签路由降级问题[官网文档对不上以及配置咨询] #8427

Closed
lwsbox opened this issue Aug 5, 2021 · 2 comments
Closed

标签路由降级问题[官网文档对不上以及配置咨询] #8427

lwsbox opened this issue Aug 5, 2021 · 2 comments

Comments

@lwsbox
Copy link

lwsbox commented Aug 5, 2021

dubbo版本: 2.7.9

image
官网的标签路由文档可否更新下,里面一些参数都对不上
RpcContext.getContext().setAttachment("dubbo.force.tag", "true");
这个才是设置为不降级的key 文档写的是 request.tag.force 其实key对应的也是dubbo.tag而不是request.tag
Constants.REQUEST_TAG_KEY 也应该是 CommonConstants.TAG_KEY

同时问下 我们可以通过启动参数设置-Ddubbo.consumer.tag=blue3 来作为全局的消费tag
那么是否可以通过设置启动参数来设置全局的dubbo.force.tag 参数?

@lwsbox lwsbox changed the title 标签路由降级问题 标签路由降级问题[官网文档对不上以及配置咨询] Aug 5, 2021
@BurningCN
Copy link
Member

BurningCN commented Aug 8, 2021

第一个问题的确是这样,方便的话,你可以在dubbo-website工程中提交个pr修改一下。第二个问题我不太清楚是否可以这样做,@AlbumenJ 大佬可以抽空看下

kealdishx added a commit to kealdishx/dubbo-website that referenced this issue Aug 10, 2021
AlbumenJ pushed a commit to apache/dubbo-website that referenced this issue Aug 11, 2021
@CrazyHZM
Copy link
Member

@lwsbox
也可以用启动参数来设置dubbo.force.tag的

cjphaha pushed a commit to cjphaha/dubbo-website that referenced this issue Dec 9, 2021
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

3 participants