apache / apache/dubbo

[Bug] override url with configurator from "service-name.configurators" in interface mode not as expected

Open
#14,185 11 comments 0 reactions 0 assignees View on GitHub
component/need-triage type/need-triage
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

### Pre-check

- [X] I am sure that all the content I provide is in English.

### Search before asking

- [X] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues.

### Apache Dubbo Component

Java SDK (apache/dubbo)

### Dubbo Version

Dubbo java 3.2.11,oracle jdk 1.8

### Steps to reproduce this issue

##### step 1 add service mode dynamic config
企业微信截图_5debfbe8-a741-4fdd-88d5-8645874aac09

##### step 2 ReferenceConfigurationListener#notifyOverrides
企业微信截图_9de645f3-0b88-4731-8d2b-4cca5fc8e1d1

##### step3 RegistryDirectory#refreshOverrideAndInvoker() -> refreshInvoker()

##### step4 mergeUrl
企业微信截图_15691103-91b4-4997-baae-44d8e6be9d21

##### step5 overrideWithReferenceConfigurators
企业微信截图_4bfa068e-a653-4438-8751-152570f26646

##### step6 service configurator rule mismatch
企业微信截图_87b5de32-7f28-479a-836d-bcdba3fe75ba

### What you expected to happen

isV27ConditionMatchOrUnset return true when application and service is matched

### Anything else

_No response_

### Are you willing to submit a pull request to fix on your own?

- [ ] Yes I am willing to submit a pull request on my own!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Research direction

Start by tracing ReferenceConfigurationListener#notifyOverrides through RegistryDirectory#refreshOverrideAndInvoker(), refreshInvoker(), mergeUrl, and overrideWithReferenceConfigurators. Reproduce the service-mode dynamic configuration on Dubbo 3.2.11 with JDK 8, then inspect the service configurator rule mismatch. Done means isV27ConditionMatchOrUnset returns true when both application and service match.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.