-
Notifications
You must be signed in to change notification settings - Fork 26.5k
the priority of ServiceRouter and AppRouter were not effective #4822
Copy link
Copy link
Closed
Milestone
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
- I have checked the FAQ of this repository and believe that this is not a duplicate.
Environment
- Dubbo version: 2.7.3
- Operating System version: Mac OS
- Java version: 1.8
Steps to reproduce this issue
1.RouterChain#buildChain(URL)
2.RouterChain#initWithRouters()
3.RouterChain#sort()
Expected Result
ServiceRouter is High priority than AppRouter
Actual Result
AppRouter is High priority than ServiceRouter
Cause by
the code was on ListenableRouter 94~96 line
public abstract class ListenableRouter extends AbstractRouter implements ConfigurationListener {
......
......
@Override
public int getPriority() {
return DEFAULT_PRIORITY;
}
Resolve
i think can like this:
public abstract class ListenableRouter extends AbstractRouter implements ConfigurationListener {
......
......
@Override
public int getPriority() {
return priority;
}
Reactions are currently unavailable