instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apache__dolphinscheduler__13261 | apache/dolphinscheduler | 13,261 | defect | 4e09bacb17c5a5d554815be03916960f354d45a1 | c82941accf0233c0810bb3bbe2ff2e971ed4c75c | [Fix-13260][API] Ironed out the issue with lacking the value of user's name when querying the list of workflow definitions. | <!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
This PR will close #13260 .
<!--(For example: This pull request adds checkstyle plug... | diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
index f6c331d24911..d6b204f9421c 100644
--- a/dolphinscheduler-api/src/main/j... | 1 | 1 | 1 | [{"id": "G0", "claim": "With a large pageSize, the per-row userMapper.selectById calls added in queryProcessDefinitionListPaging will double the number of database queries and increase the load on the database.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__dolphinscheduler__13448 | apache/dolphinscheduler | 13,448 | defect | 45694aa69791d0fa5447ec5e0223b1accbe94ec5 | 50719a9ebefe1d7917b79c44d9eeb8ea60a2337b | Task instance failure when worker group doesn't exist |
## Purpose of the pull request
Set then task instance status to failure when the related worker group doesn't exist.
This may happen when user change the worker group name or worker group has been deleted.
## Brief change log
<!--*(for example:)*
- *Add maven-checkstyle-plugin to root pom.xml*
-->
##... | diff --git a/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/consumer/TaskPriorityQueueConsumer.java b/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/consumer/TaskPriorityQueueConsumer.java
index db2b66a2b865b..8af2f1e30a3f4 100644
--- a/dolphinscheduler-... | 2 | 1 | 1 | [{"id": "G0", "claim": "The retry loop in execute() appears to never return if no exception is thrown (the while(true) body has no exit on success).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When no suitable worker is found, dispatch() should t... | null |
apache__dolphinscheduler__17138 | apache/dolphinscheduler | 17,138 | defect | f5469d7741d3333c7c22985f7805c3bca685d2a7 | 608116e7f141c246eb7bd1e303c8de3ea35cc11e | [Fix-17137][CLUSTER-MANAGE] Fix update time not effective | close #17137
## Brief change log
<!--*(for example:)*
- *Add maven-checkstyle-plugin to root pom.xml*
-->
## Verify this pull request
<!--*(Please pick either of the following options)*-->
This pull request is code cleanup without any test coverage.
*(or)*
This pull request is already covered by... | diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ClusterServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ClusterServiceImpl.java
index bf4e3ac4d605..5f93bc924197 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolph... | 2 | 1 | 0 | [{"id": "G0", "claim": "Set the cluster's updateTime using the project's centralized date utility (e.g. DateUtils.getCurrentDate() or a centralized time provider) instead of a raw `new Date()` for consistency and testability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
apache__dolphinscheduler__17745 | apache/dolphinscheduler | 17,745 | defect | 3aeabb84429f8d3d390284ff72f1286fff12fd7c | 7da42ef4c86b44067fc3f4e0e38dfe03274e2e6b | [Fix-17732] Change workflow instance status to failure when command handle failed | ## Purpose of the pull request
fix #17732
## Brief change log
<!--*(for example:)*
- *Add maven-checkstyle-plugin to root pom.xml*
-->
## Verify this pull request
<!--*(Please pick either of the following options)*-->
This pull request is code cleanup without any test coverage.
*(or)*
This pu... | diff --git a/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/WorkflowInstanceMapper.java b/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/WorkflowInstanceMapper.java
index dee3a559b5948..834cc7802839f 100644
--- a/dolphinscheduler-dao/src/main/java/org/apache/dolphin... | 4 | 4 | 4 | [{"id": "G0", "claim": "Add @Param(\"workflowInstanceId\") to the forceUpdateWorkflowInstanceState mapper method, since all MyBatis mapper parameters in this codebase consistently use @Param and it is needed for proper MyBatis parameter mapping.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc... | null |
apache__dolphinscheduler__18020 | apache/dolphinscheduler | 18,020 | defect | 0a00aa44e5f3641515c3955f93c851e8bf9b8d4b | efc9fdf9bca12145ea32b430978c82911c7017bf | [Improvement-18019][task-sql] Support SQL from resource file and parameter placeholders | <!--Thanks very much for contributing to Apache DolphinScheduler, we are happy that you want to help us improve DolphinScheduler! -->
## Was this PR generated or assisted by AI?
YES.
The implementation and refactoring were done by me, with AI assistance mainly for:
- Designing the overall approach (backend + UI... | diff --git a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/parameters/SqlParameters.java b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/parameters/SqlParameters.java
index 8864943bac43.... | 6 | 6 | 2 | [{"id": "G0", "claim": "The new sqlSource field in SqlParameters should be typed as an enum instead of a String.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The empty placeholder slots block (with its Chinese placeholder comment) on the sqlResource tr... | null |
apache__dolphinscheduler__18133 | apache/dolphinscheduler | 18,133 | defect | ff52988f31887665dd9f2a0f896fc9324b0136ca | 329ec5fb41af4b9dd1248122808ded706b3904c0 | [Fix-18132][API] Sync workflow definition version back after create/update |
The version field in the WorkflowDefinition object returned by create and update API was always 0, since the insertVersion returned by processService.saveWorkflowDefine() was never synced back to the object.
<!--Thanks very much for contributing to Apache DolphinScheduler, we are happy that you want to help us imp... | diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/WorkflowDefinitionServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/WorkflowDefinitionServiceImpl.java
index 1c7e8a87fb417..2085948e28f28 100644
--- a/dolphinscheduler-api/src/ma... | 1 | 1 | 1 | [{"id": "G0", "claim": "Please add unit tests for the workflow definition version sync change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__dolphinscheduler__18146 | apache/dolphinscheduler | 18,146 | defect | 25f7429478a1135f2e78a94cf9140b7966197027 | f67567ede7f6f3cd6d1bf3400dbce18825936742 | [Fix-18131] Workflow instance stuck in RUNNING state forever when using CONTINUE failure strategy with a failed upstream task | <!--Thanks very much for contributing to Apache DolphinScheduler, we are happy that you want to help us improve DolphinScheduler! -->
## Was this PR generated or assisted by AI?
Yes. IT is generated by AI.
## Purpose of the pull request
fix #18131
## Brief change log
<!--*(for example:)*
- *Add maven... | diff --git a/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/engine/graph/IWorkflowExecutionGraph.java b/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/engine/graph/IWorkflowExecutionGraph.java
index f94641b4a3a3..c7bbc7ccdf9d 100644
--- a/dolphinschedule... | 2 | 2 | 1 | [{"id": "G0", "claim": "In AbstractWorkflowStateAction, when readyToTriggerTasks is empty and all of the triggerCandidateTasks' predecessors are inactive, the code should call emitWorkflowFinishedEventIfApplicable (a new judge at line 90) instead of relying on the PR's hasTriggeredTask return-value logic.", "category":... | null |
apache__dolphinscheduler__18170 | apache/dolphinscheduler | 18,170 | defect | 69b3536a21b4efb677d5039d8ba2dc7a751d2ae1 | a063a3f0b15509eed5eec1b2047f81ef4bf94902 | [Fix-18168] Fix OBS listStorageEntity not returning subdirectories | <!--Thanks very much for contributing to Apache DolphinScheduler, we are happy that you want to help us improve DolphinScheduler! -->
## Was this PR generated or assisted by AI?
No
## Purpose of the pull request
Resolve https://github.com/apache/dolphinscheduler/issues/18168
## Brief change log
Fix OB... | diff --git a/dolphinscheduler-storage-plugin/dolphinscheduler-storage-obs/src/main/java/org/apache/dolphinscheduler/plugin/storage/obs/ObsStorageOperator.java b/dolphinscheduler-storage-plugin/dolphinscheduler-storage-obs/src/main/java/org/apache/dolphinscheduler/plugin/storage/obs/ObsStorageOperator.java
index b3cfca0... | 2 | 2 | 1 | [{"id": "G0", "claim": "Unit tests should be added for this change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The code should be formatted by running `mvn spotless:apply`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "... | null |
apache__dolphinscheduler__4899 | apache/dolphinscheduler | 4,899 | defect | b8788f007b1617605e05d70c0ff33c4aa7318c4b | a3690add330025a177c7323d59287b5d71285119 | [Improvement-4898][API] the paging query interface validates page params | ## What is the purpose of the pull request
this PR close #4898
the paging query interface validates page params
## Verify this pull request
This change added tests and can be verified as follows:
- *Manually verified the change by testing locally.*
| diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProcessDefinitionController.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProcessDefinitionController.java
index ab8fc2cbb07a..ac62675d9d6e 100644
--- a/dolphinscheduler-api/src/main/java/or... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new logging of user-controlled data in queryProcessDefinitionVersions is a SonarCloud vulnerability that would fail the SonarCloud Quality Gate; fix it with RegexUtils.escapeNRT on loginUser.getUserName().", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduc... | null |
apache__dolphinscheduler__5774 | apache/dolphinscheduler | 5,774 | defect | 7a18adae5261e37def2ca1ede0320043d18abfab | c23a1558ed9643ce1ce5e68424bc9509641324a5 | [Improvement-5773][server] need to support two parameters related to task | ## Purpose of the pull request
this pr close #5773
When I'm using the shell task ,I need the instance id of task and the absolute path of task.
## Brief change log
## Verify this pull request
This change added tests and can be verified as follows:
org.apache.dolphinscheduler.server.utils.ParamUtils... | diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
index 39f8898254f5..225dc2367dab 100644
--- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.... | 3 | 2 | 0 | [{"id": "G0", "claim": "Using timeParams to store temporary variables such as the execute path and task instance id is ambiguous, since timeParams mainly stores time-type parameters, so it should be renamed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
apache__dolphinscheduler__5828 | apache/dolphinscheduler | 5,828 | defect | 47de7cae7dc11ccbde89fd06181c4cfd75b4c539 | cfb4de375bc0eeabc4a50e646c210be1d0663095 | [Feature][JsonSplit-api]taskDefinition save interface | ## Purpose of the pull request
https://github.com/apache/dolphinscheduler/issues/5512
https://github.com/apache/dolphinscheduler/issues/5498
## Brief change log
*add seriviceimp and add checkutil.*
## Verify this pull request
This change added tests and can be verified as follows:
- *Added CronUtilsT... | diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/TaskDefinitionController.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/TaskDefinitionController.java
index b4838c731ccf..9a25cc2b1ded 100644
--- a/dolphinscheduler-api/src/main/java/org/apac... | 6 | 6 | 1 | [{"id": "G0", "claim": "There is no need to build a separate TaskDefinition list; the JSON should be parsed directly as a TaskDefinitionLog list and that list used.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Judging code == 0L after the try is unnece... | null |
apache__dolphinscheduler__5912 | apache/dolphinscheduler | 5,912 | defect | 5e343d3fd21ceb2bf141e7b70524b5b3eb5fb87b | 7d2a0790e2ec4621b11140d43748685a1953ce49 | [NEW FEATURE][FIX-4385] compensation task add the ability to configure parallelism | ## Purpose of the pull request
Implements the new feature discussed in #4385
Close #4385 #1319
## Brief change log
1.`Serial execution` keep the same.

2.`Parallel execution` :**Add a checkbox:... | diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ExecutorController.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ExecutorController.java
index 24e9242d11c1..87a70428da36 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinsc... | 1 | 1 | 1 | [{"id": "G0", "claim": "With the current change the last complement mission cannot be executed, because CronUtils.getSelfFireDateList breaks when startTime.equals(endTime), so that condition judgment should be removed in getSelfFireDateList.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
apache__dolphinscheduler__6229 | apache/dolphinscheduler | 6,229 | defect | b90152fc2e09ce1567a10ec929f02b24faa72065 | 0320345acdddcac2bbfc5e8e606447e0d3772182 | Enhance using experience of DataX by introduce TIS | <!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
- relevant issue [https://github.com/apache/dolphinscheduler/issues/5992](https://git... | diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/enums/TaskType.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/enums/TaskType.java
index 3792368aee12..7882bac404ae 100644
--- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/... | 3 | 2 | 1 | [{"id": "G0", "claim": "The version of the Java-WebSocket dependency needs to be declared in the main pom file rather than in the task module's pom.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The receiveRealtimeLog method may be a barrier when the wo... | null |
apache__dolphinscheduler__6272 | apache/dolphinscheduler | 6,272 | defect | 69a153c5f5c9d91b4eececbcfbf9e2fb407f89c4 | 34e37a4c0a8ecfd98848854799a633f258984594 | [Feature-5752][server]Add blocking task | This PR is reference to issue[#5752](https://github.com/apache/dolphinscheduler/issues/5752)
## Brief changelog
This PR contains three parts:
- Blocking task java code & UT
- ~~Blocking task UI~~
These changes are based on ds 2.0 architecture.
## Brief Introduction
In this part, serval pictures wi... | diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
index 4f9aca5df70b..99a8835bf9f3 100644
--- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.... | 5 | 5 | 1 | [{"id": "G0", "claim": "It would be better to make a log in BlockingTaskProcessor.submit() where the task instance is submitted (around the null-check return).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded 'BlockingOnSuccess' stri... | null |
apache__dolphinscheduler__6789 | apache/dolphinscheduler | 6,789 | defect | 088a5a47063fe09b84023f55884c99dd0ed8d05a | 913025a0ace68a6e886ff0965607ddb81ea943da | [Improvement#6655] [UI] remove registry monitor | remove zkmonitor
this close #6655 | diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/zookeeper.vue b/dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/zookeeper.vue
deleted file mode 100644
index 215b9051f223..000000000000
--- a/dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/zookeeper.vue
+++ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should also remove the backend zookeeper monitor API, not just the UI.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__dolphinscheduler__7619 | apache/dolphinscheduler | 7,619 | defect | 871db331f5f00d68baaa278e76e6646b858e048f | a04c32920fab5a3b10cb19e0fad7507420c9ee07 | [Feat]Restore presto and spark sql datasource in datasource plugin module | <!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
<!--(For example: This pull request adds checkstyle plugin).-->
Restore presto sql... | diff --git a/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-all/pom.xml b/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-all/pom.xml
index d338bd7385f5..031abb40a93a 100644
--- a/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-all/pom.xml
+++ b/dolphinscheduler-datasource-... | 2 | 2 | 0 | [{"id": "G0", "claim": "The hive, presto and spark data sources contain a lot of duplicate code, so the PR could expose the jdbcUrl parameter directly and reuse shared logic (as hive does) instead of assembling it in each datasource.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "i... | null |
apache__dolphinscheduler__7883 | apache/dolphinscheduler | 7,883 | defect | ae09702b351c71babf2c93996e56a1358eb71d39 | e441bb4a23beb355be935b16bc213c7f8de316db | [BUG] Repair JDBC connection of Oracle | ## Purpose of the pull request
Repair JDBC connection of Oracle
## Brief change log
Repair JDBC connection of Oracle
Oracle SID:
jdbc:oracle:thin:@<host>:<port>:<SID>
Oracle Service Name
jdbc:oracle:thin:@//<host>:<port>/<service_name>
## Verify this pull request
This pull request is code cleanup... | diff --git a/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasource/api/datasource/oracle/OracleDataSourceProcessor.java b/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasourc... | 1 | 1 | 1 | [{"id": "G0", "claim": "The change does not alter how the Oracle SID JDBC URL is built — the SID branch still appends '/<database>' as before, so the SID connection URL format jdbc:oracle:thin:@<host>:<port>:<SID> that the pull request set out to repair remains unhandled.", "category": "correctness", "verdict": "suppor... | null |
apache__dolphinscheduler__8139 | apache/dolphinscheduler | 8,139 | defect | a87ddca98c225c980326d0a2f93fad812898ea02 | 318cfd53e488dab9e5d61e568fc006d68bfcb593 | [Feature-8138][Task] add at@ msg in the dingtalk task plugin | <!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
<!--(For example: This pull request adds checkstyle plugin).-->
this pr close #813... | diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-dingtalk/src/main/java/org/apache/dolphinscheduler/plugin/alert/dingtalk/DingTalkAlertChannelFactory.java b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-dingtalk/src/main/java/org/apache/dolphinsche... | 3 | 1 | 0 | [{"id": "G0", "claim": "Mentioning users by ID may not actually work in DingTalk - the newly added atUserIds parameter went untested.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add documentation for the DingTalk alert plugin.", "category": "docu... | null |
apache__dolphinscheduler__8156 | apache/dolphinscheduler | 8,156 | defect | 45f6c4197b03566895008577de964f0e5f1c80c8 | de632f2442af4f2299d854ac94f91908568baec5 | [Bug-7865][MasterServer] retry logic optimization | <!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
close #7865
## Brief change log
- retry and tolerant logic optimization, avoid... | diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/enums/StateEvent.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/enums/StateEvent.java
index f24b3c154662..7cc806a8a521 100644
--- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/com... | 1 | 1 | 1 | [{"id": "G0", "claim": "The timeout check list is keyed only by the task code, which cannot distinguish the same task appearing in different process instances.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__dolphinscheduler__9246 | apache/dolphinscheduler | 9,246 | defect | c49ae015eca2aed641fd464148120f5dba24db3d | 5ba7d0a7eb52d86c1de3f8ea483a120e77283475 | [Fix-9221] [alert-server] optimization and gracefully close | This closes #9221
<!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
<!--(For example: This pull request adds checkstyle plugin).-->
... | diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertPluginManager.java b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertPluginManager.java
index f590d31aeed4..b77b0584d693 100644
--- a/dolphinsc... | 4 | 4 | 1 | [{"id": "G0", "claim": "The SonarCloud quality gate on this pull request failed (4 bugs, 3 code smells, 56.6% coverage, 5.9% duplication) and the author should address the Sonar check.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request ... | null |
apache__dolphinscheduler__9353 | apache/dolphinscheduler | 9,353 | defect | ee0e3beb9de52569199dba9802179764eb4d24b4 | 332188156e258d4ca122852fad631fd6afeb58c2 | [Fix-9352][datasource-api]data source client uses a cache with an expiration time | ## Purpose of the pull request
This pull request add a cache with an expiration time for all data source client
close #9352
## Brief change log
use Guava Cache for data source client instead of ConcurrentHashMap
## Verify this pull request
This pull request is already covered by existing tests, Datasou... | diff --git a/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasource/api/plugin/DataSourceClientProvider.java b/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasource/api/plugin... | 4 | 4 | 2 | [{"id": "G0", "claim": "getConnection should throw an exception instead of returning null when creating the datasource client fails (the catch of ExecutionException logs and returns null).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new confi... | null |
apache__dubbo-admin__1030 | apache/dubbo-admin | 1,030 | defect | 805e3de8d78ed01e2500634c5faedeefe3cfc61d | 0dedb1b8f920002163d6f04db8e5ae6c412da5f3 | feat: refactor the tag route feature with go | ## What is the purpose of the change
Fix: https://github.com/apache/dubbo-admin/issues/1029
Refactor the tag route feature with go
## Verifying this change
Verify by postman:
CreateRule:
```shell
curl -X POST \
http://127.0.0.1:38080/api/dev/rules/route/tag \
-H 'cache-control: no-cache' \
-d ... | diff --git a/go.mod b/go.mod
index 501d677da..8421b2a40 100644
--- a/go.mod
+++ b/go.mod
@@ -20,6 +20,7 @@ go 1.19
require (
dubbo.apache.org/dubbo-go/v3 v3.0.2
+ github.com/dubbogo/gost v1.13.2
github.com/gin-gonic/gin v1.8.2
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
github.com/mattbaird/jsonpatch... | 3 | 3 | 2 | [{"id": "G0", "claim": "The MatchCondition.Value field should be declared as `Value `json:\"value\" yaml:\"value\" binding:\"required\"`` so tag-rule match values are serialized under the value key and validated as required.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ... | null |
apache__dubbo-admin__1060 | apache/dubbo-admin | 1,060 | defect | e9e363c10253784ac022d431ace8f623fe6a4e6d | 064370480a233c33331c13f3351c7b9cdb48cce6 | feat: refactor service mock with go | ## What is the purpose of the change
refactor service mock with go
## Brief changelog
- update gitignore for vscode config dir
- add mock service CRUD methods
- add mock service unit test
## Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily:... | diff --git a/.gitignore b/.gitignore
index 0aae576a9..9ba98974c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,9 @@ target/
*.iml
*.iws
+# vscode ignore
+.vscode/
+
# temp ignore
*.log*
*.cache
diff --git a/conf/dubboadmin.yml b/conf/dubboadmin.yml
index b8d0fdd72..8df11f61c 100644
--- a/conf/dubboadmin.y... | 2 | 1 | 1 | [{"id": "G0", "claim": "The default queryParams (interface/group/version keys pinned to a specific DemoService and empty strings) should be reverted to constant.AnyValue, as they were left over from integration testing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"... | null |
apache__dubbo-admin__1205 | apache/dubbo-admin | 1,205 | defect | 887c510950fa55f67821825cc3bf6e5310f528a9 | e867cadd2e69baca94a6ef4d491d043c04fcc9b9 | [fix simple refactor] Differentiate between kubuclient and certclient | The concepts of kubeclient and certclient were a bit confusing before. This PR mainly separates them. | diff --git a/app/dubbo-cp/cmd/console.go b/app/dubbo-cp/cmd/console.go
deleted file mode 100644
index 83b6d1ea5..000000000
--- a/app/dubbo-cp/cmd/console.go
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The misspelled identifier `KubuClient` should be renamed to `KubeClient` (and the kubu spelling fixed throughout).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__dubbo-admin__1332 | apache/dubbo-admin | 1,332 | defect | 9729ec775598eaea8be60c9abd24b958f3d1c67c | 996ce36b6731381716f6c599308b112a7704cd45 | feat: support memory type of store | **Please provide a description of this PR:**
Using memory to support ResourceStore. Ref: https://github.com/apache/dubbo-admin/issues/1308
**To help us figure out who should review this PR, please put an X in all the areas that this PR affects.**
- [ ] Docs
- [ ] Installation
- [ ] User Experience
- [ ] Dubb... | diff --git a/app/dubbo-admin/dubbo-admin.yaml b/app/dubbo-admin/dubbo-admin.yaml
index 8f105ffac..6147444d3 100644
--- a/app/dubbo-admin/dubbo-admin.yaml
+++ b/app/dubbo-admin/dubbo-admin.yaml
@@ -37,8 +37,7 @@ console:
password: dubbo@2025
expirationTime: 3600
store:
- type: mysql
- address: xx
+ ty... | 7 | 2 | 2 | [{"id": "G0", "claim": "getKeysByIndexes combines the key sets of different indexes with set union, so it returns resources matching ANY index instead of resources matching ALL indexes; it should intersect the per-index key sets.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduce... | null |
apache__dubbo-admin__1370 | apache/dubbo-admin | 1,370 | defect | 1ade640e2b0c42d8224ab996171322736aef8f1e | 4e633fc5d9d592d986a264a3e5a941a7362c5f42 | feat: support components to start in dependency order | **Please provide a description of this PR:**
**To help us figure out who should review this PR, please put an X in all the areas that this PR affects.**
- [ ] Docs
- [ ] Installation
- [ ] User Experience
- [ ] Dubboctl
- [ ] Console
- [ ] Core Component
**Please check any characteristics that apply t... | diff --git a/pkg/console/component.go b/pkg/console/component.go
index 2457a9de9..8a9dd7771 100644
--- a/pkg/console/component.go
+++ b/pkg/console/component.go
@@ -51,6 +51,13 @@ type consoleWebServer struct {
cs consolectx.Context
}
+func (c *consoleWebServer) RequiredDependencies() []runtime.ComponentType {... | 7 | 7 | 3 | [{"id": "G0", "claim": "Since there are no compatibility issues, the pull request should completely abandon the previous initialization method and keep only one way to do initialization (the dual CompatibleMode/StrictMode and Order()-fallback machinery should be removed).", "category": "design", "verdict": "supported",... | null |
apache__dubbo-admin__1423 | apache/dubbo-admin | 1,423 | defect | 82e2512e0eb9439df485f1c9cf0223860beac6b3 | 10c3b2cca3e836b564fb0612857bff3c2878061a | feat: add leader election for Discovery and Engine components | **Please provide a description of this PR:**
Add leader election for Discovery and Engine components.
Issue #1425
**To help us figure out who should review this PR, please put an X in all the areas that this PR affects.**
- [ ] Docs
- [ ] Installation
- [ ] User Experience
- [ ] Dubboctl
- [ ] Console
- [... | diff --git a/go.mod b/go.mod
index 9d90eed51..cd7ae39d5 100644
--- a/go.mod
+++ b/go.mod
@@ -21,12 +21,8 @@ toolchain go1.24.11
require (
dubbo.apache.org/dubbo-go/v3 v3.3.0
- github.com/Masterminds/semver/v3 v3.2.1
- github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2
- github.com/dubbogo/gost v1... | 13 | 8 | 6 | [{"id": "G0", "claim": "Either update the LeaderLease doc comment or extend TryAcquire so that Version is actually part of the acquisition atomicity guarantee, since the comment claims optimistic-locking use that acquisition does not implement.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "s... | null |
apache__dubbo-go-samples__1017 | apache/dubbo-go-samples | 1,017 | defect | 4f9f11e7444d8660bf6599ba816df115c30653bc | 1e490202433d8dfb99e3d943a86c9413b94f37fe | feat: migrate registry/polaris | # Summary
Migrate compatibility/polaris/registry/ to registry/polaris/ using the modern API pattern.
# Changes
Move from compatibility/polaris/registry/ to registry/polaris/
Add related integrate test.
#958 | diff --git a/README.md b/README.md
index 69ffaa147..cc7732e45 100644
--- a/README.md
+++ b/README.md
@@ -55,7 +55,6 @@ A collection of runnable Dubbo-go examples covering configuration, registries, o
* `compatibility/proxyless`: Proxyless service mesh example for deploying Dubbo-go services on Kubernetes.
* `compatib... | 3 | 1 | 0 | [{"id": "G0", "claim": "Remove the extra trailing blank lines at the end of registry/polaris/proto/greet.proto for consistency with other proto files in the repository.", "category": "style", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the extra trailing blank line at... | null |
apache__dubbo-go-samples__242 | apache/dubbo-go-samples | 242 | defect | 12b8aa05efbec2085b84495a7c31fbd9a1e53107 | 3d1a2e95253aea2c6fa050723a8cca8cdc07aa6b | Ftr/JsonRPC using dubbogo config | PR Desc:
JsonRPC sample use the Dubbogo config
fix Dubbo of java Project, add Quickstart
add README
add integrate test | diff --git a/.run/rpc/jsonrpc/rpc-jsonrpc-go-client.run.xml b/.run/rpc/jsonrpc/rpc-jsonrpc-go-client.run.xml
new file mode 100644
index 000000000..02447c7fa
--- /dev/null
+++ b/.run/rpc/jsonrpc/rpc-jsonrpc-go-client.run.xml
@@ -0,0 +1,14 @@
+<component name="ProjectRunConfigurationManager">
+ <configuration default="f... | 8 | 7 | 1 | [{"id": "G0", "claim": "The README should not skimp on spaces and blank lines and should be formatted more generously.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The README's Backend paragraph should be rewritten along the lines of the reviewe... | null |
apache__dubbo-go-samples__965 | apache/dubbo-go-samples | 965 | defect | 36743399e251008b0739e113702db26bb6579cb1 | 8f7c09adc809c71d689adf685c5bdb45227a8bac | feat: migrate old filter sample to new | 1. migrate compatibility/filter/custom,tpslimit
2. enchance related readme
3. migrate related intergrate test
#958 | diff --git a/README.md b/README.md
index 1b8e9f05c..b31acdd1a 100644
--- a/README.md
+++ b/README.md
@@ -48,7 +48,6 @@ A collection of runnable Dubbo-go examples covering configuration, registries, o
* `compatibility/async`: Callback (asynchronous) and one-way RPC examples.
* `compatibility/config-api`: Shows how to ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Delete the redundant trailing line '以上就是使用 Dubbo-Go 实现 Triple 直连的全部步骤。' from direct/README_zh.md.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
apache__dubbo-go-samples__971 | apache/dubbo-go-samples | 971 | defect | 36743399e251008b0739e113702db26bb6579cb1 | 49b50afbb2bee2ada8ae8ed21db98be80c993cd3 | feat: migrate old async sample | 1. migrate async sample
2. migrate related integtate test
#958 | diff --git a/README.md b/README.md
index 1b8e9f05c..6c297ec23 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,7 @@ A collection of runnable Dubbo-go examples covering configuration, registries, o
### Samples
+* `async`: Callback (asynchronous) and one-way RPC examples.
* `book-flight-ai-agent`: Example of boo... | 5 | 5 | 4 | [{"id": "G0", "claim": "The Chinese README says the client obtains the server result through a callback, but the sample discards the GetUser response and implements no callback handling, so the documentation should be updated to accurately describe the sample's actual behaviour.", "category": "documentation", "verdict"... | null |
apache__dubbo-go__1023 | apache/dubbo-go | 1,023 | defect | d6941b22b40f9528ca5cdf21610c637020cf3633 | 512b6c62c31701e80c0efa1e46c2301518c6ff97 | Ftr: Use invoker with same ip as client first. | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/contributing.md before commit pull request.
-->
**What this PR does**:
Add feature :
After client gets invoker lists from registry, if there is provider with the same ip as client, client would use the same ip first, wh... | diff --git a/cluster/router/selfDiscovery/factory.go b/cluster/router/selfDiscovery/factory.go
new file mode 100644
index 0000000000..854e528dad
--- /dev/null
+++ b/cluster/router/selfDiscovery/factory.go
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license... | 6 | 3 | 0 | [{"id": "G0", "claim": "The package name should not contain '_' and should be changed from self_disc to self.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Suggests using the existing constant common.SelfDiscoveryRouterName instead of the local... | null |
apache__dubbo-go__1066 | apache/dubbo-go | 1,066 | defect | f1f81ebd8292627d79ace54010415d24149c0404 | 86e1dbd0155ec9610ae919f02bce64efdcf17543 | Fix: fix zk listener func pathToKey | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/contributing.md before commit pull request.
-->
**What this PR does**:
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste li... | diff --git a/config_center/zookeeper/listener.go b/config_center/zookeeper/listener.go
index bc6eb6d6ee..4a1c2f24ee 100644
--- a/config_center/zookeeper/listener.go
+++ b/config_center/zookeeper/listener.go
@@ -77,5 +77,6 @@ func (l *CacheListener) DataChange(event remoting.Event) bool {
}
func (l *CacheListener) p... | 2 | 2 | 0 | [{"id": "G0", "claim": "The variable groupKey should be renamed to pathWithGroupKey, or lines 80 and 81 combined into one.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The same pathToKey fix should be checked (and applied if needed) in the oth... | null |
apache__dubbo-go__1090 | apache/dubbo-go | 1,090 | defect | 274718b650e71ee55a832203e87088f9762d4ff7 | 160b8347dabddb0c9b43ae3a4e0511baa28097d2 | Fix: body buffer too short | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/contributing.md before commit pull request.
-->
**What this PR does**:
* bug fix: getty RpcServerPackageHandler decode tcp pkg failed because of the body buffer is smaller than the size marked by header
**Which issue(... | diff --git a/remoting/getty/readwriter.go b/remoting/getty/readwriter.go
index 072eb3e615..d830d6f84d 100644
--- a/remoting/getty/readwriter.go
+++ b/remoting/getty/readwriter.go
@@ -114,7 +114,8 @@ func (p *RpcServerPackageHandler) Read(ss getty.Session, data []byte) (interface
req, length, err := (p.server.codec).D... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a unit test for the PR's fix for decoding TCP packages whose body buffer is shorter than the size marked in the header.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use errors.Is() instead of the perrors.Cause-based equalit... | null |
apache__dubbo-go__1218 | apache/dubbo-go | 1,218 | defect | 547ec607fda1f17df4b81ffb9c5a5964c551356d | 45663e1ef62445c9e3d7a11d67e558b06a9e3d88 | application service discovery support nacos reporter | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/contributing.md before commit pull request.
-->
**What this PR does**:
- application service discovery support nacos reporter
- reference_config ProvidedBy definition change
**why change reference_config Provided... | diff --git a/config/reference_config.go b/config/reference_config.go
index fd7ef4932b..74de03f8e3 100644
--- a/config/reference_config.go
+++ b/config/reference_config.go
@@ -57,7 +57,7 @@ type ReferenceConfig struct {
Group string `yaml:"group" json:"group,omitempty" property:"group"`
Version ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Rename the constant PROVIDER_BY to PROVIDED_BY for consistency with the provided-by value and the renamed ProvidedBy field.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Delete the blank line between the getConfig call a... | null |
apache__dubbo-go__1221 | apache/dubbo-go | 1,221 | defect | 0f83b1a55ccfa89acd88db8d0002e92ad1417673 | a0302167530e99f94bbe94d4366c3e00c95b2e41 | application service discovery support etcd reporter | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/contributing.md before commit pull request.
-->
**What this PR does**:
1 application service discovery support etcd reporter
2 fix the comments of PublishAppMetadata and GetAppMetadata
**Which issue(s) this PR fixes**... | diff --git a/metadata/report/delegate/delegate_report.go b/metadata/report/delegate/delegate_report.go
index cd92fbb332..e1495d1539 100644
--- a/metadata/report/delegate/delegate_report.go
+++ b/metadata/report/delegate/delegate_report.go
@@ -148,13 +148,13 @@ func NewMetadataReport() (*MetadataReport, error) {
retur... | 4 | 4 | 0 | [{"id": "G0", "claim": "The variable `_data` in GetAppMetadata should not start with an underscore, since that is not Go style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should check the return value of GetAppMetadata instead of di... | null |
apache__dubbo-go__1339 | apache/dubbo-go | 1,339 | defect | 3ab0ab6dac7cb1246b122cb0d6e8f59064575dc2 | e73e49bd1241abd1157570556781be50d0efe5ee | Use class name as the default reference name | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request.
-->
**What this PR does**:
This PR removes `RPCService` and uses the class name as the default reference name.
**Which issue(s) this PR fixes**:
<!--
*Automatically closes ... | diff --git a/common/proxy/proxy.go b/common/proxy/proxy.go
index 900ea18119..1ec2a9ba00 100644
--- a/common/proxy/proxy.go
+++ b/common/proxy/proxy.go
@@ -29,7 +29,6 @@ import (
)
import (
- "dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/common... | 3 | 3 | 1 | [{"id": "G0", "claim": "Deriving the service key with reflect.TypeOf(service).Elem().Name() does not handle pointer vs struct types or package names: passing a pointer to a struct defined in package pkg would yield '*pkg.User' as the key where the user expects 'User', and this should be adjusted.", "category": "correct... | null |
apache__dubbo-go__1604 | apache/dubbo-go | 1,604 | defect | df9f3f925cd5d852e60a53cfcb7c4cd3befd9773 | d1a98b329ae23135f706c79e8395a1b7c8a186ea | fix tps filter panic bug(pre-check the configuration of tps at the st… | …art phase)
<!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request.
-->
**What this PR does**:
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `F... | diff --git a/common/constant/key.go b/common/constant/key.go
index d317979b0d..fd2f555306 100644
--- a/common/constant/key.go
+++ b/common/constant/key.go
@@ -102,9 +102,9 @@ const (
TPSLimiterKey = "tps.limiter"
TPSRejectedExecutionHandlerKey = "tps.limit.rejected.handler"
TPSLimitRateKe... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pre-check calls extension.GetTpsLimitStrategyCreator but discards its return value, so it does not actually verify the tps limit strategy creator exists; the reviewer asks why the call is made and requests adding a function to check whether the creator exists and logging the error there.", "... | null |
apache__dubbo-go__1629 | apache/dubbo-go | 1,629 | defect | a8fba7015a448387362a41de644aadce47318fae | 12cca45d013430991b892477c71e01c9552e54f1 | avoid the problem of cpu idling & fix wrong definition of error | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request.
-->
**What this PR does**:
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste lin... | diff --git a/registry/zookeeper/listener.go b/registry/zookeeper/listener.go
index 5de11d6fa8..a5c62f30f0 100644
--- a/registry/zookeeper/listener.go
+++ b/registry/zookeeper/listener.go
@@ -71,17 +71,18 @@ func (l *RegistryDataListener) UnSubscribeURL(url *common.URL) config_center.Con
}
// DataChange accepts all ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The \"/providers/\" literal in RegistryDataListener.DataChange should be defined as a constant instead of being written inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change may affect the mesh router samples,... | null |
apache__dubbo-go__1662 | apache/dubbo-go | 1,662 | defect | 9b86b2da99a5a520ee4e4f54f3a2b1ab9f6a23d2 | 5684e20c0994e08cb8c6f227e3ac31dcfb811262 | fix bug | Issues:
* https://github.com/apache/dubbo-go/issues/1661
* https://github.com/apache/dubbo-go/issues/1659
* https://github.com/apache/dubbo-go/pull/1306 | diff --git a/common/constant/key.go b/common/constant/key.go
index d8a66c1857..887fe7a452 100644
--- a/common/constant/key.go
+++ b/common/constant/key.go
@@ -132,6 +132,7 @@ const (
CONDITION_ROUTE_PROTOCOL = "condition"
TAG_ROUTE_PROTOCOL = "tag"
PROVIDERS_CATEGORY = "providers"
+ CONSUMERS_CATEGORY... | 3 | 1 | 0 | [{"id": "G0", "claim": "Run go fmt over the project: the pull request's code is not gofmt-formatted (e.g. the line added in config/reference_config.go carries trailing whitespace).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Inside the new if... | null |
apache__dubbo-go__2000 | apache/dubbo-go | 2,000 | defect | 013f0b2804ce40d33e1190bfdbd671980f3b1e12 | d996d03200dd2f94af566cb78deb71b8eadddf98 | Fix: route with more invokers | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request.
-->
**What this PR does**:
multiple invoker may include different methods, find correct invoker.
<img width="1386" alt="image" src="https://user-images.githubusercontent.com... | diff --git a/cluster/router/chain/chain.go b/cluster/router/chain/chain.go
index 037fa5554f..72368b9e9c 100644
--- a/cluster/router/chain/chain.go
+++ b/cluster/router/chain/chain.go
@@ -19,6 +19,7 @@ package chain
import (
"sort"
+ "strings"
"sync"
)
@@ -52,7 +53,16 @@ type RouterChain struct {
// Route L... | 2 | 2 | 0 | [{"id": "G0", "claim": "The invoker filtering in RouterChain.Route should compare url.ServiceKey() (which combines interface, group and version) instead of comparing the Version, Group and Interface fields separately.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
apache__dubbo-go__2014 | apache/dubbo-go | 2,014 | defect | 1d6b35ff267c0eb668cddc95d98248d491723d56 | 1133e07cd9f682d428fafb3d3e7e1a294e6cdf44 | feat: resolve placeholder | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request.
-->
**What this PR does**:
resolve placeholder `${xxx:defaultValue}`
**Which issue(s) this PR fixes**:
Fixes #1983
**You should pay attention to items below to ensure you... | diff --git a/config/config_resolver.go b/config/config_resolver.go
index 0e4eefd4a6..fe84e9815c 100644
--- a/config/config_resolver.go
+++ b/config/config_resolver.go
@@ -18,10 +18,17 @@
package config
import (
+ "strings"
+)
+
+import (
+ log "github.com/dubbogo/gost/log/logger"
+
"github.com/knadh/koanf"
"git... | 5 | 4 | 1 | [{"id": "G0", "claim": "The resolver should support default values in placeholders, e.g. ${dubbo.provider.filter:nacos}, as the referenced implementation does.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The resolver should resolve nested placeho... | null |
apache__dubbo-go__2025 | apache/dubbo-go | 2,025 | defect | 53221faec1ebd1108ea6deb823f0b6f9d05ec643 | 0979169ad9869e88f98eed3fde03a38070f7448d | Enable publish servicedefinition to metadata center | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request.
-->
**What this PR does**:
**Which issue(s) this PR fixes**:
fix zk invalid path when metadata-type: remote
**You should pay attention to items below to ensure your pr p... | diff --git a/metadata/identifier/base_metadata_identifier.go b/metadata/identifier/base_metadata_identifier.go
index cdfeac787e..e69a4c6008 100644
--- a/metadata/identifier/base_metadata_identifier.go
+++ b/metadata/identifier/base_metadata_identifier.go
@@ -43,6 +43,9 @@ type BaseMetadataIdentifier struct {
func join... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add a log line to record the early return when joinParams meets an empty param.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "joinParams should use strings.Builder instead of string concatenation.", "category": "performa... | null |
apache__dubbo-go__2061 | apache/dubbo-go | 2,061 | defect | 5268c26fd927fd21459d90313882b038e1ae40c2 | 47159bcab55afd3b25ce75c89323fb196f956d7d | feat: nacosRegistry and polarisRegistry support register ip and port from env |
<!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request.
-->
**What this PR does**:
**Which issue(s) this PR fixes**:
Fixes #2060
**You should pay attention to items below to ensure your pr passes our ci test**
We do not m... | diff --git a/common/host_util.go b/common/host_util.go
index 1f2c939b79..f3da0c0bb2 100644
--- a/common/host_util.go
+++ b/common/host_util.go
@@ -18,6 +18,8 @@
package common
import (
+ "os"
+
gxnet "github.com/dubbogo/gost/net"
)
@@ -30,3 +32,19 @@ func GetLocalIp() string {
localIp, _ = gxnet.GetLocalIP()... | 3 | 3 | 1 | [{"id": "G0", "claim": "The DUBBO_IP_TO_REGISTRY environment variable name should be declared as a constant in common/constant/env.go instead of an inline string literal.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DUBBO_PORT_TO_REGISTRY ... | null |
apache__dubbo-go__2067 | apache/dubbo-go | 2,067 | defect | 19ddecf8d62de1812625e4a60e05ffad07ab6e16 | 47bd791ddea376877ba876f086f308bb935ac4d9 | feat: adaptive load balancer of adaptive service | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request.
-->
**What this PR does**:
Provides an adaptive load balancer in unstable environments.
This is a component of adaptive service at the consumer side.
**Which issue(s) this ... | diff --git a/cluster/cluster/adaptivesvc/cluster_invoker.go b/cluster/cluster/adaptivesvc/cluster_invoker.go
index 7eaf456e8a..ac6d046a47 100644
--- a/cluster/cluster/adaptivesvc/cluster_invoker.go
+++ b/cluster/cluster/adaptivesvc/cluster_invoker.go
@@ -19,12 +19,10 @@ package adaptivesvc
import (
"context"
- "st... | 5 | 5 | 2 | [{"id": "G0", "claim": "In Weight, avgS and avgT need not be divided by 2.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The metrics names EMA and SlidingWindowCounter are confusing; give the approach a name and restructure the metrics into <Name>_... | null |
apache__dubbo-go__2114 | apache/dubbo-go | 2,114 | defect | 9ca9baef4dd697d1bc7cd0e8bdc939459cf19bec | edad0f39a6dbf7e92706015337ef5dea506e5573 | feat: auto concurrency limiter of adaptive service | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request.
-->
**What this PR does**:
Provides an auto concurrency limiter in unstable environments.
This is a component of adaptive service at the provider side.
The component at the c... | diff --git a/filter/adaptivesvc/filter.go b/filter/adaptivesvc/filter.go
index 11c5015aac..8be46b7241 100644
--- a/filter/adaptivesvc/filter.go
+++ b/filter/adaptivesvc/filter.go
@@ -78,7 +78,7 @@ func (f *adaptiveServiceProviderFilter) Invoke(ctx context.Context, invoker prot
// limiter is not found on the mapper,... | 5 | 5 | 0 | [{"id": "G0", "claim": "The `noLoadLatency` field comment should have a space after the `//` delimiter (`//duration` -> `// duration`).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `remeasureStartUs` field comment should have a space after t... | null |
apache__dubbo-go__2246 | apache/dubbo-go | 2,246 | defect | b492dba48ea91095b616d8eba4ebc394a1271548 | d7a0acebf4a5015c65006c49fd2478b687226968 | [Bugfix] Custom triple server message size | <!-- Thanks for sending a pull request!
Read https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md before commit pull request.
-->
According to the pr of #1654, for the client side, the function works normally, but for the server side, the order of Provider Export is not always the same, resulting in somet... | diff --git a/common/constant/default.go b/common/constant/default.go
index 93ab319d08..8c0f4ffbd3 100644
--- a/common/constant/default.go
+++ b/common/constant/default.go
@@ -17,6 +17,8 @@
package constant
+import "math"
+
const (
Dubbo = "dubbo"
ProviderProtocol = "provider"
@@ -91,3 +93,11 @@ con... | 3 | 2 | 0 | [{"id": "G0", "claim": "In protocol/grpc/client.go the url.GetParam calls for MaxCallRecvMsgSize and MaxCallSendMsgSize use \"0\" as the default, which the reviewer asks about as inconsistent with the \"\" default used for MaxServerRecvMsgSize.", "category": "maintainability", "verdict": "supported", "priority": "P2", ... | null |
apache__dubbo-go__2310 | apache/dubbo-go | 2,310 | defect | 4b13d2b8637a4356b33f992c8208ec7475ef80ec | 8101ffaa966eb3064206845304c20367ad1c45cd | refactor: split metrics module into multiple files | I have read the code related to the metrics module and plan to refactor the existing code before adding new metric instrumentation. This will make it easier for future development work. Could you please review the current file structure design to see if it conforms to community standards?
我阅读了 metrics 模块相关的代码,在添加新的指... | diff --git a/common/constant/key.go b/common/constant/key.go
index 131b200aee..16933a4089 100644
--- a/common/constant/key.go
+++ b/common/constant/key.go
@@ -176,6 +176,9 @@ const (
const (
ApplicationKey = "application"
+ ApplicationNameKey = "application_name"
+ HostnameKey = "hostname"
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "buildMetricsName should use strings.TrimPrefix(sb.String(), \"_\") instead of strings.CutPrefix with the boolean result discarded.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
apache__dubbo-go__2376 | apache/dubbo-go | 2,376 | defect | 8b431355ac2022cde863c145e8ca76d9e5a2e136 | d3d0d175d08a3a5bcfcddba206ac7c1a4fcb65a3 | refactor: make rt metric more performance and easy to use | 1. optimize rt calculation time
The current implementation rt will be calculated every time the sample data is added, which is performance-intensive and unnecessary.
new implementation will only be calculated when Prometheus pulls data
2. add more unit tests for metrics
3. add Rt interface to `MetricRegisrty... | diff --git a/common/host_util.go b/common/host_util.go
index 5c411ab4a9..eac0ac1450 100644
--- a/common/host_util.go
+++ b/common/host_util.go
@@ -31,8 +31,10 @@ import (
"dubbo.apache.org/dubbo-go/v3/common/constant"
)
-var localIp string
-var localHostname string
+var (
+ localIp string
+ localHostname str... | 2 | 2 | 1 | [{"id": "G0", "claim": "buildKey builds the label key by concatenating strings in a loop, and should use a bytes.Buffer instead.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Rt method is inappropriate because it actually creates an aggregate t... | null |
apache__dubbo-go__2465 | apache/dubbo-go | 2,465 | defect | cccb67d802da04479f8ec0e68f65d3f332249bf0 | a4795cb8f4fc86da4fa73fcf73ff6108f26fddf7 | refactor: metrics config | Resolves #2464 | diff --git a/config/metric_config.go b/config/metric_config.go
index af41eb8532..d3a88f050f 100644
--- a/config/metric_config.go
+++ b/config/metric_config.go
@@ -39,10 +39,9 @@ type MetricConfig struct {
Port string `default:"9090" yaml:"port" json:"port,omitempty" property:"port"`
Path ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Changing Exporter.Enabled's default to true will make url.getParam(constant.PrometheusExporterEnabledKey) always true (metrics.Init only runs when mc.Enable is true), meaning the Prometheus http exporter is always opened, so the default should stay false and toURL() should only perform format co... | null |
apache__dubbo-go__2563 | apache/dubbo-go | 2,563 | defect | 2dd66e9e83572677919f5a75f81e83275b224c5d | 5b09c72c743143555ee5499cb963f00854d653c4 | [3.1] Fix nacos App Metadata not compatible with java | Fix #2543 | diff --git a/metadata/report/nacos/report.go b/metadata/report/nacos/report.go
index fd8182c270..2e67510cae 100644
--- a/metadata/report/nacos/report.go
+++ b/metadata/report/nacos/report.go
@@ -69,14 +69,24 @@ type nacosMetadataReport struct {
// GetAppMetadata get metadata info from nacos
func (n *nacosMetadataRe... | 1 | 1 | 1 | [{"id": "G0", "claim": "PublishAppMetadata must keep writing the metadata under the previous rules (DataId: metadataIdentifier.GetIdentifierKey(), Group: n.group) alongside the java-impl key, otherwise a previous service will not be able to call the current service.", "category": "correctness", "verdict": "supported", ... | null |
apache__dubbo-go__2648 | apache/dubbo-go | 2,648 | defect | 964bbf8edb688e5f5a1be59cf116457248850eac | d74e072f70b14c313075a30bb6dc388f2493e88f | fix: Server return with Attachment | fix: Server return with Attachment (#2641)
> > in this pr, every call will return all attachment-data , whether built-in data or user-attached data. in triple unray call
> >
> > but in this issue
> > i have no idea to fix it in an elegant way
> >
> > I tried adding new fields like (userAttachmentKey or what... | diff --git a/client/client.go b/client/client.go
index 98ab66733e..c7547d6405 100644
--- a/client/client.go
+++ b/client/client.go
@@ -59,7 +59,8 @@ func (conn *Connection) call(ctx context.Context, reqs []interface{}, resp inter
if err != nil {
return nil, err
}
- return conn.refOpts.invoker.Invoke(ctx, inv), n... | 5 | 5 | 2 | [{"id": "G0", "claim": "NewOutgoingContext's signature should not have been changed to take interface{} and return an error; http.Header is clear and efficient enough for users.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "AppendToOutgoingContext, Extr... | null |
apache__dubbo-go__2817 | apache/dubbo-go | 2,817 | defect | a8353c62a547354048116bc62a37d3e176c77ec5 | a94ca0a72fe1b5e76a31770b0e016d25e99f7a6e | fix: propagate encoding errors in marshalRequest (fixes #2517) | This PR fixes the issue where encoding errors in marshalRequest were not properly propagated, which could lead to issues with typed nil pointers (e.g., (*int32)(nil)). The changes ensure that encoding errors are returned and handled appropriately.
Changes:
- Updated marshalRequest in hessian.go to propagate encodin... | diff --git a/protocol/dubbo/impl/hessian.go b/protocol/dubbo/impl/hessian.go
index df90bd4133..b74b833092 100644
--- a/protocol/dubbo/impl/hessian.go
+++ b/protocol/dubbo/impl/hessian.go
@@ -136,7 +136,9 @@ func marshalRequest(encoder *hessian.Encoder, p DubboPackage) ([]byte, error) {
}
_ = encoder.Encode(types)
... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the encoding loop, reusing the name 'err' for the per-argument encode error shadows the already-declared 'err' from line 133 and would fail golangci-lint, so a different variable name should be used.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduc... | null |
apache__dubbo-go__2841 | apache/dubbo-go | 2,841 | defect | 2d64722134e12b0af499baf9dafe1c3c7568cf9c | 46253815f3d6beed13ac4f5e52305a1bbb534c2e | feat: decode hessian from stream(#2840) | ```
func NewStreamingHessianCodecCustom(pkgType PackageType, reader *bufio.Reader, bodyLen int) *HessianCodec {
return &HessianCodec{
pkgType: pkgType,
reader: reader,
bodyLen: bodyLen,
streaming: true,
}
}
```
Add a `streaming` option for `HessianCodec`, if true, keep reading the buffer of ... | diff --git a/protocol/dubbo/hessian2/hessian_dubbo.go b/protocol/dubbo/hessian2/hessian_dubbo.go
index 3458650f1e..a307288ca5 100644
--- a/protocol/dubbo/hessian2/hessian_dubbo.go
+++ b/protocol/dubbo/hessian2/hessian_dubbo.go
@@ -64,9 +64,10 @@ type Service struct {
// HessianCodec defines hessian codec
type Hessi... | 6 | 5 | 2 | [{"id": "G0", "claim": "Capture and handle the error returned by h.reader.Read(buf) in the streaming branch of ReadHeader instead of ignoring it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Extract the streaming read loop into a helper function t... | null |
apache__dubbo-go__2979 | apache/dubbo-go | 2,979 | defect | 1e023b794415f5c13037a0d4984b414c4dc81fe0 | 77228b063c76148e65e099488b7d2878deada1a6 | Fix: fix `urlString` with muti address trim space | 1. Add urlString trim space
2. Fix real error warp
Closes: #2980 | diff --git a/common/url.go b/common/url.go
index 8da974da05..504505809b 100644
--- a/common/url.go
+++ b/common/url.go
@@ -255,6 +255,20 @@ func NewURL(urlString string, opts ...Option) (*URL, error) {
return &s, nil
}
+ // zookeeper, nacos, metadata address with muti addr trim space
+ urlStringTrim := func(s st... | 1 | 1 | 0 | [{"id": "G0", "claim": "The typo 'Muti'/'muti' in the new test function name TestNewURLWithMutiAddr and in the added comment in NewURL should be corrected to 'Multi'/'multi' as suggested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__dubbo-go__2992 | apache/dubbo-go | 2,992 | defect | 97a472cf6018836bf31383e4b8cc823ecc201273 | 677c265bd8ecddd24e8ce634857158258dc202bd | Feat-conf hot-loading capacity | Feat-conf hot-loading capacity
Fix :https://github.com/apache/dubbo-go/issues/2925
| diff --git a/loader.go b/loader.go
index fa5cf5ab6f..d3c7bd99d1 100644
--- a/loader.go
+++ b/loader.go
@@ -22,11 +22,14 @@ import (
"path/filepath"
"runtime"
"strings"
+ "sync"
)
import (
"github.com/dubbogo/gost/log/logger"
+ "github.com/fsnotify/fsnotify"
+
"github.com/knadh/koanf"
"github.com/knadh... | 3 | 3 | 3 | [{"id": "G0", "claim": "The watcher goroutine should be started with dubbogo/gost's GoSafely instead of a bare `go`, and the reviewer asks why the goroutine has no exit-control mechanism.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Critical confi... | null |
apache__dubbo-go__2997 | apache/dubbo-go | 2,997 | defect | 97a472cf6018836bf31383e4b8cc823ecc201273 | 2d6e86b7027007ac9a54d474618c873d5f3cd73d | fix(test): refactor variable names for clarity and consistency in tests | 1、the variable 'result'/'url' conflicts with the name of the imported software package
2、correct word mistakes
3、optimize filter/auth/sign_util_test.go | diff --git a/filter/README.md b/filter/README.md
index 5b5647de5b..7ed092d120 100644
--- a/filter/README.md
+++ b/filter/README.md
@@ -29,7 +29,7 @@ import _ "dubbo.apache.org/dubbo-go/v3/filter/filter_impl"
- execlmt: Execute Limit Filter(https://github.com/apache/dubbo-go/pull/246)
- generic: Generic Filter(https:/... | 2 | 1 | 1 | [{"id": "G0", "claim": "The CI run for this pull request is failing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test function names contain a spelling error: 'TestHystricFilterInvokeCircuitBreak' should be 'TestHystrixFilterInvokeCircuitBrea... | null |
apache__dubbo-go__3023 | apache/dubbo-go | 3,023 | defect | a4456d34a2c1f2c6d57b288a65b4c04a183fc75e | 4b66e4dfa2dea965bd9a882a7d5f6efdcacd359f | fix: resolve memory leaks in goroutine management, file handles, and extension caches | This PR addresses critical memory leaks, goroutine deadlocks, and file handle leaks that could lead to resource exhaustion in production environments. The fixes include comprehensive architectural improvements to the access log filter, extension cache management, and Nacos service discovery components.
Key Changes
... | diff --git a/common/extension/filter.go b/common/extension/filter.go
index 84e9221366..826646a087 100644
--- a/common/extension/filter.go
+++ b/common/extension/filter.go
@@ -58,3 +58,23 @@ func GetRejectedExecutionHandler(name string) (filter.RejectedExecutionHandler,
}
return creator(), nil
}
+
+// UnregisterFil... | 8 | 7 | 1 | [{"id": "G0", "claim": "The memory-leak tests manipulate global variables and sync.Once instances directly and duplicate that reset block across tests; extract the setup into a helper (or use dependency injection / test-specific instances) to avoid fragile, race-prone tests.", "category": "testing", "verdict": "support... | null |
apache__dubbo-go__3029 | apache/dubbo-go | 3,029 | defect | 889d27602761ce24f376aaca6a3e8954f9627ea1 | 821fdbc46e9836b2fd3962900bf4128306821dc9 | chore: update tag and polaris from config to global | This pull request refactors router configuration handling and improves the integration of application and registry context within router logic. The main changes include moving the router configuration types from the `config` package to a new `router` package, updating references throughout the codebase, and ensuring th... | diff --git a/cluster/router/config.go b/cluster/router/config.go
index 2231898c2f..7396835fe1 100644
--- a/cluster/router/config.go
+++ b/cluster/router/config.go
@@ -17,11 +17,64 @@
package router
+import (
+ "dubbo.apache.org/dubbo-go/v3/common"
+)
+
+// RouterConfig is the configuration of the router.
+type Rou... | 5 | 4 | 3 | [{"id": "G0", "claim": "The type assertions on URL attributes in newPolarisRouter (application.(string), registries.(map[string]*global.RegistryConfig)) are unchecked and can panic at runtime if the attribute is missing or of an unexpected type.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc... | null |
apache__dubbo-go__3046 | apache/dubbo-go | 3,046 | defect | d28a109cca02f3cf9f2f7b39ab9e1fba4a95b24c | ab36d9956f1461ede64e8581bd492174bb1bb741 | feat: update go vesion to 1.24 and remove the use of rand.seed | - upgrade go from 1.23 to 1.24
fix #3044 | diff --git a/go.mod b/go.mod
index 1f3e6628d2..ea3dc640e8 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module dubbo.apache.org/dubbo-go/v3
-go 1.23
+go 1.24.0
require (
github.com/RoaringBitmap/roaring v1.2.3
@@ -14,7 +14,7 @@ require (
github.com/dop251/goja v0.0.0-20240220182346-e401ed450204
github.co... | 2 | 2 | 2 | [{"id": "G0", "claim": "The CI is failing on this pull request and the failure should be fixed.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G3", "claim": "The gost update to v1.14.2 in this pull request is unreasonable because gost dropped grpc.WithBlock that etcd/... | null |
apache__dubbo-go__3066 | apache/dubbo-go | 3,066 | defect | 1a7b1690ae5177e7a549adabef414c4cb3e7ebc2 | 9464c7f573ad2f82219ef6bb5a9e259e80e90714 | Expose api of router | Sorry, I committed to the main branch yesterday, and now I'll push it to the develop branch. #3045 | diff --git a/cluster/router/options.go b/cluster/router/options.go
new file mode 100644
index 0000000000..63a47bb30a
--- /dev/null
+++ b/cluster/router/options.go
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distribu... | 1 | 1 | 1 | [{"id": "G0", "claim": "The tag copying introduced by this pull request shallow-copies Match and Addresses — in RouterConfig.Clone (global/router_config.go) and in compatTags/compatGlobalTag (compat.go) — so the original and the cloned objects still share the same underlying array and could interfere with each other; t... | null |
apache__dubbo-go__3086 | apache/dubbo-go | 3,086 | defect | c63bec05cea73237e0ece3ac41cc3b75143b26ba | 1fd05ccfd485690877a412190c01ae9ed30f2c49 | refactor(triple): upgrade triple client to service-level abstraction | ## Background
Currently, `triple_protocol.Client` is designed as a procedure-level client (one client instance per RPC method), which leads to:
* High memory overhead: O(methods) client instances per service
* Complex management: `clientManager` maintains a `map[string]*Client` to track method-level clients
* D... | diff --git a/protocol/triple/client.go b/protocol/triple/client.go
index 3378a55e7c..724b0215e7 100644
--- a/protocol/triple/client.go
+++ b/protocol/triple/client.go
@@ -26,25 +26,20 @@ import (
"net/http"
"reflect"
"strings"
+ "sync"
"time"
-)
-import (
+ "dubbo.apache.org/dubbo-go/v3/common"
+ "dubbo.apach... | 10 | 7 | 3 | [{"id": "G0", "claim": "Divide the imports in protocol/triple/client.go into three blocks.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The error ErrPoolClosed could be named ErrTriPoolClosed.", "category": "maintainability", "verdict": "suppo... | null |
apache__dubbo-go__3090 | apache/dubbo-go | 3,090 | defect | 029e040ba9d5d1a6a038264497457eee67682d6f | e665ac305f8d1685c994c8408c859245beb8a4b3 | feat: support cors for triple | ## Description
This PR adds CORS support to the Triple protocol.
This feature enables browser-based clients or other cross-origin applications to invoke Triple services directly, resolving issues related to the Same-Origin Policy.
## Changes
**CORS Handler**: Implemented CORS handling logic in protocol/tr... | diff --git a/global/config_test.go b/global/config_test.go
index c436a7d753..16275404a9 100644
--- a/global/config_test.go
+++ b/global/config_test.go
@@ -186,6 +186,13 @@ func TestCloneConfig(t *testing.T) {
CheckCompleteInequality(t, c, clone)
})
+ t.Run("CorsConfig", func(t *testing.T) {
+ c := DefaultCorsCo... | 16 | 11 | 7 | [{"id": "G0", "claim": "The PR adds a second import block to option.go instead of merging \"dubbo.apache.org/dubbo-go/v3/global\" into the existing import section.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding the cors field changed the ... | null |
apache__dubbo-go__3092 | apache/dubbo-go | 3,092 | defect | c63bec05cea73237e0ece3ac41cc3b75143b26ba | 449346990692433f86065f3e47d42355581259b0 | Fix panic when retrieving metadata from Java providers via RPC | # Fix panic when retrieving metadata from Java providers via RPC
## Description
This PR fixes a critical panic that occurs in service discovery when Go consumers attempt to retrieve metadata from Java providers via RPC. The panic is caused by Hessian2 deserialization errors when converting Java's `MetadataInfo` t... | diff --git a/registry/servicediscovery/service_instances_changed_listener_impl.go b/registry/servicediscovery/service_instances_changed_listener_impl.go
index 24618054a7..5287b1d55b 100644
--- a/registry/servicediscovery/service_instances_changed_listener_impl.go
+++ b/registry/servicediscovery/service_instances_change... | 3 | 1 | 1 | [{"id": "G0", "claim": "The fallback approach is acceptable short-term, but the root cause of the Hessian2 incompatibility should also be found long term, within the dubbo-go-hessian2 project.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If possible, t... | null |
apache__dubbo-go__3108 | apache/dubbo-go | 3,108 | defect | 7acdd578e2cd54f67e6e203821691762ea826508 | ba6ee226a4307b9cad661b6ea88508e7e09a25b7 | fix: fix nacos deregister when receiving shutdown signal | fix #3107
in the previous version `UnRegisterService`, is not invoked at all, this function serves as the deregister hook when receiving shutdown signal. This pr fixes it. | diff --git a/registry/nacos/service_discovery.go b/registry/nacos/service_discovery.go
index 6bf0622921..c9f3af6087 100644
--- a/registry/nacos/service_discovery.go
+++ b/registry/nacos/service_discovery.go
@@ -67,7 +67,7 @@ type nacosServiceDiscovery struct {
// cache registry instances
registryInstances []registr... | 2 | 1 | 1 | [{"id": "G0", "claim": "s.instances should be cleared (set to nil) after unregistering, otherwise the registry keeps stale instances after UnRegisterService runs.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The previous logic seems not to support... | null |
apache__dubbo-go__3170 | apache/dubbo-go | 3,170 | defect | 1f05305eeb0269c8f174b92cfdda082e13a65412 | b03a49f0c83d6e08504ae12cfa8c0f511c9071cb | feat(generic): support protobuf-json serialization in generic filter | Add protobuf-json generalizer support to the Filter layer, enabling generic calls with protobuf-json serialization for Triple protocol.
- Update isGeneric() to recognize 'protobuf-json' and 'gson' types
- Add protobuf-json case in getGeneralizer() to return ProtobufJsonGeneralizer
- Add corresponding unit tests fo... | diff --git a/filter/generic/util.go b/filter/generic/util.go
index 2e5b22b62e..872652347b 100644
--- a/filter/generic/util.go
+++ b/filter/generic/util.go
@@ -50,7 +50,9 @@ func isMakingAGenericCall(invoker base.Invoker, invocation base.Invocation) bool
// isGeneric receives a generic field from url of invoker to dete... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use strings.EqualFold instead of strings.ToLower plus == for the case-insensitive generic-type comparison in isGeneric.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__dubbo-go__3174 | apache/dubbo-go | 3,174 | defect | 1f05305eeb0269c8f174b92cfdda082e13a65412 | 29127ce9aaaa73b3aea1d7a04b5b1f8535449b76 | feat(generic): add InvokeWithType and move GenericService to filter/generic | ### Summary
- Add `InvokeWithType` method to `GenericService` for automatic deserialization of generic call results
- Move `GenericService` from `config/generic` to `filter/generic`
- Enhance `OnResponse` in `genericFilter` to support auto deserialization
### Motivation
1. Add InvokeWithType
Previously, generi... | diff --git a/client/client.go b/client/client.go
index 074e5a1e13..0820961b67 100644
--- a/client/client.go
+++ b/client/client.go
@@ -26,7 +26,7 @@ import (
import (
"dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/common/constant"
- "dubbo.apache.org/dubbo-go/v3/config/generic"
+ "dubbo.apache... | 8 | 8 | 1 | [{"id": "G0", "claim": "Documentation for the new InvokeWithType usage should be written in the dubbo-website repository.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nil-reply and non-pointer-reply error tests do not set service.Invoke, so ... | null |
apache__dubbo-go__3180 | apache/dubbo-go | 3,180 | defect | 762e905e97c823e15cd67deab1069ec80990d142 | e0740d57ef998f1fd241a30515adcc21e2bb2e89 | fix(cluster/failback): add exponential backoff for retry mechanism | ### Summary
Replace the fixed 5-second retry interval in Failback cluster with exponential backoff (1s→60s) to prevent retry storms when downstream services experience extended outages.
### Problem
The current Failback cluster implementation uses a **fixed 5-second interval** for all retry attempts:
```go
if time.... | diff --git a/cluster/cluster/failback/cluster_invoker.go b/cluster/cluster/failback/cluster_invoker.go
index 442e051219..6157695f26 100644
--- a/cluster/cluster/failback/cluster_invoker.go
+++ b/cluster/cluster/failback/cluster_invoker.go
@@ -27,6 +27,8 @@ import (
import (
"github.com/Workiva/go-datastructures/queu... | 4 | 2 | 0 | [{"id": "G0", "claim": "The retry-failed test could also assert the retry time intervals under exponential backoff, as it did before the change removed those assertions.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The retry-failure Errorf format string... | null |
apache__dubbo-go__3185 | apache/dubbo-go | 3,185 | defect | f1ac666550e9e1e951ed980c11a7a88bb7fd51e8 | 61dd75fa9e90ade3c5217b14c62d61b7ebeb2ebc | fix: ensure router receives attachments from context | ### Description
Fixes #3181
Polaris 路由失效,原因是通过 context 传递的 attachments 没有被正确读取到 invocation 中。
在调用链中:
1. 用户通过 context.WithValue() 设置路由所需的元数据
2. 从 context 中提取这些 attachments发生在路由选择之后
### Solution
修改 generateInvocation 函数签名,增加 ctx context.Context 参数
在生成invocation时从 ctx.Value(constant.AttachmentKey... | diff --git a/client/client.go b/client/client.go
index 0820961b67..a296f14eae 100644
--- a/client/client.go
+++ b/client/client.go
@@ -75,7 +75,7 @@ func (conn *Connection) call(ctx context.Context, reqs []any, resp any, methodNa
for _, opt := range opts {
opt(options)
}
- inv, err := generateInvocation(methodNa... | 2 | 1 | 1 | [{"id": "G0", "claim": "TestFailbackRetryFailed fails in this PR's CI, apparently a race caused by the exponential backoff introduced in #3180, and a check/fix is requested.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The PR's new behavior of mergi... | null |
apache__dubbo-go__3189 | apache/dubbo-go | 3,189 | defect | f1ac666550e9e1e951ed980c11a7a88bb7fd51e8 | f8850897783bb7f4ee1f7cd77fc49abdcf4981fa | feat(metrics): enhance the monitoring metrics of rpc call failure under Triple protocol | ### Description
according to https://cn.dubbo.apache.org/en/overview/reference/metrics/standard_metrics/
Implementing a more fine-grained error classification mechanism for the triple protocol to classify and count RPC request failures for both provider and consumer.
Support classification: timeout, flow restri... | diff --git a/metrics/registry/event_test.go b/metrics/registry/event_test.go
index d244a79132..fdd09ef973 100644
--- a/metrics/registry/event_test.go
+++ b/metrics/registry/event_test.go
@@ -61,7 +61,7 @@ func TestNewRegisterEvent(t *testing.T) {
assert.Equal(t, Reg, event.Name)
assert.True(t, event.Succ)
assert.... | 4 | 3 | 0 | [{"id": "G0", "claim": "ErrorTypeNetworkFailure and ErrorTypeCodec are never returned by classifyError, so the 'CodeInternal' comments are misleading; either wire them into the switch or mark them reserved with a TODO.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
apache__dubbo-go__3208 | apache/dubbo-go | 3,208 | defect | a929410ef42b388b57f8013b6126169c336ae107 | 345e6b686c88c065f15b6550e9c93bc2c08b1c4d | fix(router): ensure invoker receive Provider's tag, fix type bug | ### Description
Fixes #3203
1. client在从nacos获取Provider并生成invoker时,缺少对Tag的初始化,导致Provider设置的dubbo.tag无效。
2. #3185 引入的代码存在类型转换问题,当用户传入的attachment是map[string]string类型的时候,attachment无法正确附加进生成的invocation
#### 测试代码:
server端:
```
ins, err := dubbo.NewInstance(
dubbo.WithName(ServerName),
dubbo.WithRegistry(
... | diff --git a/client/client.go b/client/client.go
index a296f14eae..e31fdc7f2d 100644
--- a/client/client.go
+++ b/client/client.go
@@ -238,8 +238,13 @@ func generateInvocation(ctx context.Context, methodName string, reqs []any, resp
}
if attaRaw := ctx.Value(constant.AttachmentKey); attaRaw != nil {
- if userAtt... | 2 | 1 | 1 | [{"id": "G0", "claim": "Registries other than nacos may also fail to initialise the provider Tag on discovered instances; if any do, fix them in this pull request as well.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Add a unit test covering the n... | null |
apache__dubbo-go__3216 | apache/dubbo-go | 3,216 | defect | 77428fe0f84d829092c9bd457c81e8dd0ffd55b5 | 4a1956df6f2de996f7bfd703f45a3c1a016d9b30 | fix(router/affinity): prevent panic caused by nil return in initialization phase | ### Description
在一些情况下,client 配置 affinity router 时,会因为 nil 而触发段错误
```
2026-02-17 21:27:55 ERROR affinity/router.go:90 Application affinity router must set application name
2026/02/17 21:27:55 Authenticated: id=72061538416853150, timeout=4000
panic: runtime error: invalid memory address or nil pointer d... | diff --git a/cluster/router/chain/chain.go b/cluster/router/chain/chain.go
index c4a1168822..99a255aa63 100644
--- a/cluster/router/chain/chain.go
+++ b/cluster/router/chain/chain.go
@@ -33,6 +33,7 @@ import (
import (
"dubbo.apache.org/dubbo-go/v3/cluster/router"
"dubbo.apache.org/dubbo-go/v3/common"
+ "dubbo.apa... | 2 | 2 | 2 | [{"id": "G0", "claim": "The application-key fill in NewRouterChain should be protected by a lock, because two goroutines can both read an empty value at the same check and then race to SetParam.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The PR ... | null |
apache__dubbo-go__3230 | apache/dubbo-go | 3,230 | defect | e1fc8ed56f4257004fb149104cc964a13eea56d6 | 72d77e196cfbf7a974cb8df72e20385357b525dc | fix(filter):solve side effects caused by 3184 refactor | ### Description
This PR fixes a side effect (active count leak) introduced by the `BaseInvoker` refactor in #3184.
**Background & Issue:**
In #3184, `BaseInvoker.GetURL()` was modified to return an `emptyURL` instead of `nil` when the invoker is concurrently destroyed. However, in `filter/active/filter.go`, if the... | diff --git a/filter/active/filter.go b/filter/active/filter.go
index ab070fbf5d..222fbf1c8b 100644
--- a/filter/active/filter.go
+++ b/filter/active/filter.go
@@ -28,6 +28,7 @@ import (
)
import (
+ "dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v... | 2 | 2 | 2 | [{"id": "G0", "claim": "The unguarded url.(*common.URL) type assertion in OnResponse can panic when the cached dubboInvokeURL attachment is missing or not a *common.URL; use a safe type assertion and fall back to a sensible default (e.g., invoker.GetURL() or skipping EndCount).", "category": "correctness", "verdict": "... | null |
apache__dubbo-go__3231 | apache/dubbo-go | 3,231 | defect | e1fc8ed56f4257004fb149104cc964a13eea56d6 | a3141de6db503b6d6b102468336e6fbef000ddb6 | Refactor: remove config in grpc and dubbo3 | 更改概览和 TODO 更改情况
protocol/dubbo3/dubbo3_invoker.go 已移除
- TODO RequestTimeout:默认超时读取路径变更,改为从 global.DefaultConsumerConfig() 读取,经 url 的 ConsumerConfigKey 覆盖后,统一用 TimeoutKey 解析最终值
- TODO consumerService:删除旧兼容逻辑,仅从url的RpcServiceKey 属性获取服务实例
- TODO tracing:不再从 config 读取,改为直接读取 url 的 TracingConfigKey,并补充类型校验和空值兜底
- T... | diff --git a/protocol/dubbo3/dubbo3_invoker.go b/protocol/dubbo3/dubbo3_invoker.go
index 8b3ffc69ab..f01d03aa48 100644
--- a/protocol/dubbo3/dubbo3_invoker.go
+++ b/protocol/dubbo3/dubbo3_invoker.go
@@ -40,7 +40,6 @@ import (
import (
"dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/common/const... | 16 | 13 | 11 | [{"id": "G0", "claim": "Export() stores the exporter into the ExporterMap before verifying the RpcServiceKey service exists, so the failure path returns nil while leaving a stale exporter entry that can cause inconsistent state and later panics/timeouts.", "category": "correctness", "verdict": "supported", "priority": ... | null |
apache__dubbo-go__3253 | apache/dubbo-go | 3,253 | defect | c11a12be6af68485aaad475d0040a0f227931459 | 02dc1447d09ef45a05b8473e21612b0443d44b04 | refactor: migrate hystrix filter from main repository | ### Description
hysrix filter has been moved to `dubbo-go-extentions`, clean up hystrix filter from main repository
hystrix filter now can be used independently via side-effect imports:
```go
import (
_ "github.com/apache/dubbo-go-extensions/filter/hystrix"
)
```
new usage( use dubbo-go-extensions and n... | diff --git a/common/constant/key.go b/common/constant/key.go
index 1880faf671..b6d32a88c3 100644
--- a/common/constant/key.go
+++ b/common/constant/key.go
@@ -109,8 +109,6 @@ const (
GracefulShutdownProviderFilterKey = "pshutdown"
GracefulShutdownConsumerFilterKey = "cshutdown"
GracefulShutdownFilterShutdow... | 3 | 3 | 2 | [{"id": "G0", "claim": "WithServerFilterConf, originally for hystrix, is left completely undocumented after the PR removed its todo comments; either add a comment explaining what the API is kept for and what conf any should be, or confirm nothing else uses it and delete it too.", "category": "maintainability", "verdict... | null |
apache__dubbo-go__3270 | apache/dubbo-go | 3,270 | defect | 06837fd9858704702c955bc0013ec7d459dda1cb | ceb551b0354e5ab05a1073733511df1014641fe6 | fix: close #3247 nacos/directory lifecycle race risks | ### Description
Fixes #3247
- 在 `registry/nacos` 中将 `scheduledLookUp` 从 `time.Sleep` 轮询改为 `ticker + done`,关闭时可及时退出
- 在 `registry/directory` 中调整 `Subscribe` 时序:先执行带超时的 register,再启动 subscribe goroutine;register 路径使用 `url.Clone()`
- 补充回归测试:`TestNacosRegistryScheduledLookUpStopsWhenDoneClosed`、`TestRegistryDirectorySubscr... | diff --git a/registry/directory/directory.go b/registry/directory/directory.go
index f2e80705d3..7757c3e0a5 100644
--- a/registry/directory/directory.go
+++ b/registry/directory/directory.go
@@ -69,9 +69,11 @@ type RegistryDirectory struct {
consumerURL *common.URL
cacheOriginUrl ... | 7 | 7 | 2 | [{"id": "G0", "claim": "The lock field should be named subscribedUrlLock (consistent URL casing) instead of subscribedURLLock.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The change from unlimited waiting to a bounded registration timeout in ... | null |
apache__dubbo-go__3281 | apache/dubbo-go | 3,281 | defect | fb8eff2f090851261e2d1acfc55414ede91ca9c0 | 80c64506395adffbeaddae3bee886755da2a7475 | feat: add stateful HTTP/3 negotiation with probe and cooldown | ### Description
#### Before
#3266
If HTTP/3 failed, the client could then fall back to HTTP/2 with the same `http.Request`.
That behavior is risky for Triple, because request bodies come from `io.Pipe` or other non-replayable streams.
It also means a broken HTTP/3 path can keep being retried instead of letting t... | diff --git a/protocol/triple/client.go b/protocol/triple/client.go
index b235ee4c00..061c711033 100644
--- a/protocol/triple/client.go
+++ b/protocol/triple/client.go
@@ -314,72 +314,3 @@ func genKeepAliveOptions(url *common.URL, tripleConf *global.TripleConfig) ([]tr
return cliKeepAliveOpts, keepAliveInterval, kee... | 8 | 5 | 2 | [{"id": "G0", "claim": "A comment should be added to clarify what the mu mutex protects.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The string literal \"h3\" should be turned into a constant in common/consts.", "category": "maintainability",... | null |
apache__dubbo-go__432 | apache/dubbo-go | 432 | defect | bde7db3b33067ee4115ea3f8666ec1169226a5de | 0b268af1eb0830f832eaa0c9066f261cba3b1278 | Fix: issue #32 | 1. modify registryProtocol as a singleton to fix graceful shutdown can't delete the provider url
2. fix notification confusion caused by multiple references sharing the same zk listener
| diff --git a/registry/protocol/protocol.go b/registry/protocol/protocol.go
index a7678ba4e2..4976d34ecc 100644
--- a/registry/protocol/protocol.go
+++ b/registry/protocol/protocol.go
@@ -44,7 +44,7 @@ import (
)
var (
- regProtocol *registryProtocol
+ regProtocol = newRegistryProtocol()
)
type registryProtocol ... | 12 | 9 | 3 | [{"id": "G0", "claim": "Lazy loading would be better than eager initialization for the newRegistryProtocol singleton (e.g. a double-checked or once-only create).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RegistryDataListener's shared subscribed ... | null |
apache__dubbo-go__455 | apache/dubbo-go | 455 | defect | adae0d729b94852bda855eeb78276ce48a8acde7 | 357f536d493d9c6946e3bd1113eb3cfe4119cd48 | Align 2.7.5: direct event dispatcher | <!-- Thanks for sending a pull request!
-->
**What this PR does**:
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related issues/tests i... | diff --git a/common/observer/dispatcher/direct_event_dispatcher.go b/common/observer/dispatcher/direct_event_dispatcher.go
new file mode 100644
index 0000000000..f255bd6c36
--- /dev/null
+++ b/common/observer/dispatcher/direct_event_dispatcher.go
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF)... | 9 | 5 | 0 | [{"id": "G0", "claim": "Add proper doc comments to the exported items of direct_event_dispatcher.go (constructor and Dispatch) that were left uncommented.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Look up the dispatcher in the map with the co... | null |
apache__dubbo-go__510 | apache/dubbo-go | 510 | defect | 6a558d875f02f41f52cb97c1e2ce17f1c6031293 | 341bc5fbfab8f4e2d8dba9f930cc82fa9ece945e | Ftr : add UnRegister and UnSubscribe for zookeeper Registry | <!-- Thanks for sending a pull request!
-->
**What this PR does**:
* add UnRegister and UnSubscribe for Registry
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests o... | diff --git a/go.sum b/go.sum
index 326b4e6897..9bcb1fe457 100644
--- a/go.sum
+++ b/go.sum
@@ -35,11 +35,8 @@ github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 h1:rFw4nCn9iMW+Vaj
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
github.com... | 16 | 14 | 8 | [{"id": "G0", "claim": "The cltLock guarding the services map in UnRegister should be changed to a read-write lock.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment on the processSubscribe helper is wrong and should not read the way it does.", ... | null |
apache__dubbo-go__522 | apache/dubbo-go | 522 | defect | 9578fc0bbc1bbabfa6afc79bad3b5fd89009af3b | bdd9b71c37ec772a606021614a6810efb625b91b | Nacos MetadataReport implementation | <!-- Thanks for sending a pull request!
-->
**What this PR does**:
Implement MetadataReport based on Nacos
Fixes #446 | diff --git a/metadata/report/nacos/report.go b/metadata/report/nacos/report.go
new file mode 100644
index 0000000000..9dbec51822
--- /dev/null
+++ b/metadata/report/nacos/report.go
@@ -0,0 +1,198 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the N... | 7 | 5 | 2 | [{"id": "G0", "claim": "The import blocks should be regrouped: the test file's single mixed import block should be split and base_registry.go's standalone remoting/nacos import block combined with the third (dubbo) block.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"},... | null |
apache__dubbo-go__632 | apache/dubbo-go | 632 | defect | 3d49970f57003fa864b968e4db21e28cfc687b0d | 39fd6580f226614e78df6147c82972f7e7b6d7ae | fix: enhancement cluster code analysis | <!-- Thanks for sending a pull request!
-->
**What this PR does**:
Enhancement cluster gitee code analysis
**Which issue(s) this PR fixes**:
Fixes #615
| diff --git a/cluster/cluster_impl/base_cluster_invoker_test.go b/cluster/cluster_impl/base_cluster_invoker_test.go
index 695ffcddbb..8121e5c0ea 100644
--- a/cluster/cluster_impl/base_cluster_invoker_test.go
+++ b/cluster/cluster_impl/base_cluster_invoker_test.go
@@ -33,10 +33,15 @@ import (
"github.com/apache/dubbo-g... | 3 | 3 | 0 | [{"id": "G0", "claim": "Move the extracted tryTimerTaskProc function definition above process, so the smaller function appears before the larger one that calls it.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Split the new github.com/apache/dubbo-go/co... | null |
apache__dubbo-go__659 | apache/dubbo-go | 659 | defect | 72901ee7fac881c4b74680e7ab4c5fec885c651c | 380ad21e8d5fa54b316c71af52d8713f6c4a3458 | Ftr: Nearest first for multiple registry | <!-- Thanks for sending a pull request!
-->
**What this PR does**:
This extension provides a strategy to decide how to distribute traffics among them:
1. registry marked as 'preferred=true' has the highest priority.
2. check the zone the current request belongs, pick the registry that has the same zone first.
... | diff --git a/cluster/cluster_impl/failover_cluster.go b/cluster/cluster_impl/failover_cluster.go
index d30a743e03..d02a0c5810 100644
--- a/cluster/cluster_impl/failover_cluster.go
+++ b/cluster/cluster_impl/failover_cluster.go
@@ -43,3 +43,7 @@ func NewFailoverCluster() cluster.Cluster {
func (cluster *failoverCluster... | 10 | 8 | 0 | [{"id": "G0", "claim": "The original `registry_aware_cluster_invoker` extension should be held back (kept) rather than removed by this change.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new zone-aware files' imports, and the `time`/`cluster_impl`... | null |
apache__dubbo-go__665 | apache/dubbo-go | 665 | defect | c6c39e2db9543175a5274631377c76f0e9423dde | 71095a35998513b9a8632e59e85c81cc1b45556e | Ftr: dynamic tag router | <!-- Thanks for sending a pull request!
-->
**What this PR does**:
#593
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related issues/... | diff --git a/cluster/router/condition/listenable_router.go b/cluster/router/condition/listenable_router.go
index 4ccc19e955..7f4f14a8e4 100644
--- a/cluster/router/condition/listenable_router.go
+++ b/cluster/router/condition/listenable_router.go
@@ -85,7 +85,7 @@ func newListenableRouter(url *common.URL, ruleKey strin... | 15 | 7 | 1 | [{"id": "G0", "claim": "The addressToTagNames and tagNameToAddresses maps in init() should be created with an initial capacity of 8 instead of empty map literals.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getAddresses() should preallocate its r... | null |
apache__dubbo-go__694 | apache/dubbo-go | 694 | defect | db1e5daf3770aefcd612e6d2f9983cc971d909a0 | dc075daadfa0507c45c48ecc3405f034eb389f97 | Fix: Register service instance after provider config load | <!-- Thanks for sending a pull request!
-->
**What this PR does**:
Register service instance after provider config load
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-te... | diff --git a/config/config_loader.go b/config/config_loader.go
index d5f8c68c1b..98553fc316 100644
--- a/config/config_loader.go
+++ b/config/config_loader.go
@@ -21,6 +21,7 @@ import (
"fmt"
"log"
"os"
+ "strconv"
"sync"
"time"
)
@@ -35,6 +36,7 @@ import (
"github.com/apache/dubbo-go/common/extension"
"... | 7 | 4 | 1 | [{"id": "G0", "claim": "The panic message for an invalid registry protocol should include the failing value's type information so the actual type is visible in the output.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The URL-selection loop sho... | null |
apache__dubbo-go__701 | apache/dubbo-go | 701 | defect | 12680fdab94cbfebb75d58b28f8b71addee7269a | 47bab040338fd0df4f4ab6e11f7765af0634d6d3 | Ftr: consul service discovery | <!-- Thanks for sending a pull request!
-->
**What this PR does**:
implement consul discovery
**Which issue(s) this PR fixes**:
Fixes #
**Special notes for your reviewer**:
**Does this PR introduce a user-facing change?**:
```release-note
``` | diff --git a/common/constant/key.go b/common/constant/key.go
index cd23dd0f1a..29a306f0e4 100644
--- a/common/constant/key.go
+++ b/common/constant/key.go
@@ -171,6 +171,10 @@ const (
ETCDV3_KEY = "etcdv3"
)
+const (
+ CONSUL_KEY = "consul"
+)
+
const (
TRACING_REMOTE_SPAN_CTX = "tracing.remote.span.ctx"
)
dif... | 25 | 23 | 3 | [{"id": "G0", "claim": "Remove the commented-out params lines (//params[\"tag\"] = \"dubbo\" and the duplicated //params[\"passingonly\"]) left in AddListener.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The github.com/apache/dubbo-go/common ... | null |
apache__dubbo-go__748 | apache/dubbo-go | 748 | defect | fe8e2f82b65b615f6ad589863503eccabe376971 | d294b14aeb6fca9ff9c5130c13a6c1a478027e12 | Ftr: add sentinel-golang flow control/circuit breaker | **What this PR does**:
Integrate [sentinel-golang](https://github.com/alibaba/sentinel-golang) into dubbo-go
**Which issue(s) this PR fixes**:
**Special notes for your reviewer**:
@pantianying
**Does this PR introduce a user-facing change?**:
| diff --git a/filter/filter_impl/sentinel_filter.go b/filter/filter_impl/sentinel_filter.go
new file mode 100644
index 0000000000..0472f63aad
--- /dev/null
+++ b/filter/filter_impl/sentinel_filter.go
@@ -0,0 +1,226 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agre... | 6 | 6 | 2 | [{"id": "G0", "claim": "Add a test case that checks whether the rate limiter actually limits calls.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Sentinel should be initialized inside the filter package rather than left for callers to initialize manual... | null |
apache__dubbo-go__758 | apache/dubbo-go | 758 | defect | ea9d6eb572b2dd59989a1078bf9178711be48aa4 | c3aac14a3f204f45da65b7df03a9725801abbae1 | fix #750. registry center notify with complete address list | https://github.com/apache/dubbo-go/issues/750
1.fix empty ServiceEvent, we should clear all invokers
2.we want to notify the address with complete address list.
| diff --git a/metadata/report/nacos/report_test.go b/metadata/report/nacos/report_test.go
index be01eb22f7..81432ff2ae 100644
--- a/metadata/report/nacos/report_test.go
+++ b/metadata/report/nacos/report_test.go
@@ -19,6 +19,7 @@ package nacos
import (
"encoding/json"
+ "net/http"
"strconv"
"testing"
)
@@ -36,... | 4 | 3 | 2 | [{"id": "G0", "claim": "The repeated nacos-server reachability check should be encapsulated in a helper function to delete duplicate code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "refreshAllInvokers should not assume all events are UPDATE ... | null |
apache__dubbo-go__822 | apache/dubbo-go | 822 | defect | 0384e201ecac8a1a76659b5dbf5f9f07edf41533 | 71035dda4e096f4e0fa57969c9f16dec7ca9097b | Fix:generic struct2MapAll | **What this PR does**:
fix generic struct2MapAll
**Which issue(s) this PR fixes**:
Fixes #801
| diff --git a/filter/filter_impl/generic_filter.go b/filter/filter_impl/generic_filter.go
index d385054ed9..f5a03ba379 100644
--- a/filter/filter_impl/generic_filter.go
+++ b/filter/filter_impl/generic_filter.go
@@ -93,11 +93,19 @@ func struct2MapAll(obj interface{}) interface{} {
if t.Kind() == reflect.Struct {
re... | 2 | 2 | 0 | [{"id": "G0", "claim": "Replacing the original if-chain with a switch/fallthrough in struct2MapAll lowers execution efficiency.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "A type check expression such as `switch v := param.(type)` should be used ... | null |
apache__dubbo-go__84 | apache/dubbo-go | 84 | defect | 4f7ef9ddef1de6dc7cb121947357234a0202c056 | ebb1a0240d501fd7964869f28684c7a9a60c7623 | Fix: handle java exception | **What this PR does**:
- exception should not be error of `ReadHeader ` and `ReadBody`
- fix big package
**Which issue(s) this PR fixes**:
**Special notes for your reviewer**:
**Does this PR introduce a user-facing change?**:
| diff --git a/go.mod b/go.mod
index 0527279e48..e88b8da6cb 100644
--- a/go.mod
+++ b/go.mod
@@ -1,8 +1,8 @@
module github.com/apache/dubbo-go
require (
- github.com/dubbogo/getty v0.0.0-20190607120257-8b0e100a88af // indirect
- github.com/dubbogo/hessian2 v0.0.0-20190607144249-afb8cbfad2cb // indirect
+ github.com/d... | 2 | 1 | 0 | [{"id": "G0", "claim": "In DubboPackage.Unmarshal the temporary 'response' variable should be avoided; a direct assignment to p.Body would be better.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The imports in protocol/dubbo/readwriter.go shou... | null |
apache__dubbo-samples__1043 | apache/dubbo-samples | 1,043 | defect | 5fd4da0c55f05dd705f271a5826c20c78dd520c1 | 19df1ea94dcfc1e4a84b7339151c19e9d917ed79 | Add native image integration test support | resolve https://github.com/apache/dubbo/issues/13691
required env: jre 17,maven,docker, docker compose v1.x
need run `test/build-native-test-image.sh` first
entrypoint:`test/run-native-tests.sh`
docker compose 2.x will have compatibility issues,use `export COMPOSE_COMPATIBILITY=1` to avoid it | diff --git a/2-advanced/dubbo-samples-native-image-registry/case-versions.conf b/2-advanced/dubbo-samples-native-image-registry/case-versions.conf
new file mode 100755
index 0000000000..720edcae5d
--- /dev/null
+++ b/2-advanced/dubbo-samples-native-image-registry/case-versions.conf
@@ -0,0 +1,24 @@
+#
+#
+# Licensed ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The <mainClass>placeholder_avoid_error</mainClass> entry in the consumer pom's dubbo-maven-plugin configuration may not be required.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded native-maven-plugin version 0.9.28 i... | null |
apache__dubbo-samples__1059 | apache/dubbo-samples | 1,059 | defect | 0bf62a6b8e3fcf66581790dc51450a87432e1600 | ebef9cc5eb320c79e0b3ea0426e1b71eec20215e | upgrade 2-advanced/dubbo-samples-notify to jdk17 and spring3 | - upgrade jdk17 and springboot3
- upgrade to junit5
- Clean up commented out code
| diff --git a/2-advanced/dubbo-samples-notify/case-versions.conf b/2-advanced/dubbo-samples-notify/case-versions.conf
index b03fb1ae45..97d0c905e5 100644
--- a/2-advanced/dubbo-samples-notify/case-versions.conf
+++ b/2-advanced/dubbo-samples-notify/case-versions.conf
@@ -21,5 +21,5 @@
# Spring app
dubbo.version=3.*
... | 3 | 3 | 1 | [{"id": "G0", "claim": "The PR switched the NotifyIT field injection from @Autowired to @Resource without need, so it should be reverted to @Autowired.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should keep changes homogeneous, accomplishing o... | null |
apache__dubbo-samples__1066 | apache/dubbo-samples | 1,066 | defect | 0bf62a6b8e3fcf66581790dc51450a87432e1600 | 2c846caf74460c65cd1fb2ba82a246de6e4e3bcd | update version in dubbo-samples-validation | update the jdk version to 17 ,dubbo version to 3.2.*,use springboot replace spring. | diff --git a/2-advanced/dubbo-samples-validation/case-versions.conf b/2-advanced/dubbo-samples-validation/case-versions.conf
index f7373a530c..82aeb45603 100644
--- a/2-advanced/dubbo-samples-validation/case-versions.conf
+++ b/2-advanced/dubbo-samples-validation/case-versions.conf
@@ -20,6 +20,6 @@
# Supported compon... | 3 | 3 | 2 | [{"id": "G0", "claim": "The pom should use the dependency used in the referenced master sample (the spring-boot starter setup) instead of the dubbo-dependencies-zookeeper-curator5 pom-type dependency with log exclusions that the pull request added.", "category": "design", "verdict": "supported", "priority": "P1", "scop... | null |
apache__dubbo-samples__1078 | apache/dubbo-samples | 1,078 | defect | 21cb3d745c8feaa97ff3a21bb3e8ff6d0bc17e6e | 03f4b53cbeb1326dc4f58152b3c11a57727ff32b | Update dubbo-samples-serialization/dubbo-samples-serialization-java s… | update dubbo-samples-serialization/dubbo-samples-serialization-java module to jdk17 , springboot3.2.3 and dubbo-version 3.3.0-beta.1 | diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java/case-versions.conf b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java/case-versions.conf
index f7373a530c..1a3bfb38ed 100644
--- a/3-extensions/serialization/dubbo-samples-serializ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The dubbo-dependencies-zookeeper-curator5 dependency in the parent pom's dependencyManagement can be deleted now that the sample no longer uses it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__dubbo-samples__1157 | apache/dubbo-samples | 1,157 | defect | ad26b446f29b9ef43c9020f50e8be4365e8e3e76 | 76122cfba6025b7fee32c67ac540abedd36ef86f | Add broadcast test | add test case to avoid https://github.com/apache/dubbo/issues/14280 | diff --git a/2-advanced/dubbo-smples-broadcast/case-configuration.yml b/2-advanced/dubbo-smples-broadcast/case-configuration.yml
new file mode 100644
index 0000000000..3c8ddb9afa
--- /dev/null
+++ b/2-advanced/dubbo-smples-broadcast/case-configuration.yml
@@ -0,0 +1,68 @@
+# Licensed to the Apache Software Foundation (... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request should not keep/maintain the vendored EmbeddedZooKeeper class.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out EmbeddedZooKeeper start call in BroadcastProvider should be removed because ... | null |
apache__dubbo-samples__1167 | apache/dubbo-samples | 1,167 | defect | 3374ffcfbc3b0659b40b133bec9f1781c24e6183 | e610a9918699d89504389ecd2517eaf2742b5fef | Lowering the jdk-ser ci version | Since the jdk-ser has been moved to SPI extensions, this sample needs to be temporarily blocked, and it will be added to SPI samples later | diff --git a/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java/case-versions.conf b/3-extensions/serialization/dubbo-samples-serialization/dubbo-samples-serialization-java/case-versions.conf
index 1a3bfb38ed..cdbada7fa7 100644
--- a/3-extensions/serialization/dubbo-samples-serializ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The case should also be duplicated (as done in dubbo-spi-extensions) so the 3.3 versions this PR narrows out remain covered.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__dubbo-samples__1193 | apache/dubbo-samples | 1,193 | defect | 350ec01b20790aca70c00fcc8abc6f2b1d907640 | accf9ce8a0d205af54ba142373d7909a0fa07d21 | Add RESTful Dubbo Integration with Spring Security and OAuth2 Sample | This pull request introduces a sample project that demonstrates how to integrate Dubbo with RESTful APIs, incorporating Spring Security and OAuth2 for authentication and authorization. The sample showcases the following key functionalities:
1. Dubbo RESTful Integration:
- A RESTful API is exposed for Dubbo servic... | diff --git a/2-advanced/dubbo-samples-triple-rest/dubbo-samples-triple-rest-spring-security/pom.xml b/2-advanced/dubbo-samples-triple-rest/dubbo-samples-triple-rest-spring-security/pom.xml
new file mode 100644
index 0000000000..f4d69047fe
--- /dev/null
+++ b/2-advanced/dubbo-samples-triple-rest/dubbo-samples-triple-res... | 3 | 2 | 2 | [{"id": "G0", "claim": "Some path in the pull request's new files might not be right.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The catch of RestClientResponseException in testGetUserEndpoint only logs the error, so the test succeeds even when ... | null |
apache__dubbo-samples__196 | apache/dubbo-samples | 196 | defect | 642d349cfbad4198a04823be9c41048d50f9b7e7 | 2687b9730d38fe5b2a160fb88c522743f6f9d1cf | update some modules configuration | update dubbo-samples-configcenter-annotation/dubbo-samples-configcenter-api/dubbo-samples-multi-registry | diff --git a/dubbo-samples-configcenter/dubbo-samples-configcenter-annotation/case-configuration.yml b/dubbo-samples-configcenter/dubbo-samples-configcenter-annotation/case-configuration.yml
index da2a1ac011..bf83271b85 100644
--- a/dubbo-samples-configcenter/dubbo-samples-configcenter-annotation/case-configuration.yml... | 8 | 8 | 2 | [{"id": "G0", "claim": "The dependencyManagement blocks added to the annotation and api poms redundantly declare dubbo and spring-test, which are already managed by the imported dubbo-bom and spring-framework-bom, so those entries should be removed.", "category": "maintainability", "verdict": "supported", "priority": "... | null |
apache__dubbo-samples__208 | apache/dubbo-samples | 208 | defect | 9aed44f833143cfb0d362a7e95eefcd508f8e682 | 70e549dff0794db3652ab77c93db02cca82fd5f9 | dubbo-samples-direct test case | Chages:
* add test case-configuration file
* optimize pom | diff --git a/dubbo-samples-direct/case-configuration.yml b/dubbo-samples-direct/case-configuration.yml
new file mode 100644
index 0000000000..d7f8c5ae51
--- /dev/null
+++ b/dubbo-samples-direct/case-configuration.yml
@@ -0,0 +1,45 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor l... | 1 | 1 | 0 | [{"id": "G0", "claim": "Please use the `app-external-zookeeper.yml` template for case-configuration.yml and replace `target.address` with `dubbo.address` in the test class.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__dubbo-samples__218 | apache/dubbo-samples | 218 | defect | f6618116905f5202928a4354734b896adce4339f | c73963c8649abc12cec97387906c56be091893f9 | complete dubbo-samples-transaction integration test case | 1. update seata to the lastest release version
2. fix the seata-server connect problem
3. add commit situation testcase | diff --git a/dubbo-samples-transaction/case-configuration.yml b/dubbo-samples-transaction/case-configuration.yml
index dc18ef81f4..c21017dab0 100644
--- a/dubbo-samples-transaction/case-configuration.yml
+++ b/dubbo-samples-transaction/case-configuration.yml
@@ -53,12 +53,15 @@ services:
systemProps:
- zook... | 3 | 2 | 0 | [{"id": "G0", "claim": "mysql-connector.version does not need to be extracted into a property, and unused properties such as docker-maven-plugin.version should be deleted from the pom.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The depende... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.