apache / apache/dubbo

dubbo.force.tag setting bug

Open
#9,972 0 comments 0 reactions 0 assignees View on GitHub
type/discussion
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo version: 2.7.7
* Operating System version: xxx
* Java version: all

### Steps to reproduce this issue

1. issue code https://github.com/apache/dubbo/blob/3.0/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/RpcInvocation.java
![image](https://user-images.githubusercontent.com/12707336/165263522-12175f70-295c-4a26-84c3-27d9d35db2b1.png)

2. maven depency
![image](https://user-images.githubusercontent.com/12707336/165263862-dc49ae09-9fad-46b4-8354-3814ddd6fc1d.png)
the method isForceUseTag is always return false.
private boolean isForceUseTag(Invocation invocation) {
return Boolean.valueOf(invocation.getAttachment(FORCE_USE_TAG, url.getParameter(FORCE_USE_TAG, "false")));
}

3. code confused between org.apache.dubbo.rpc and com.alibaba.dubbo.rpc in one dubbo package

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.