Skip to content

Commit da2dd6d

Browse files
committed
Merge branch 'apache-3.2' into apache-3.3
# Conflicts: # README.md # dubbo-container/dubbo-container-api/src/main/java/org/apache/dubbo/container/Main.java
2 parents cb92fcc + 501bdfa commit da2dd6d

File tree

15 files changed

+287
-24
lines changed

15 files changed

+287
-24
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
title: "[General][Java SDK (Component)] xxx"
19+
body:
20+
- type: markdown
21+
attributes:
22+
value: |
23+
<img src="https://dubbo.apache.org/imgs/nav_logo2.png" alt="Dubbo logo" height="90px" align="right" />
24+
25+
Thank you for finding the time to share your idea! We really appreciate the community efforts to improve Dubbo.
26+
27+
If you need to report a security issue, please visit [our security policy](https://github.com/apache/dubbo/security/policy).
28+
29+
**Dubbo is open for world wide collaboration, please make sure that all the content you provide is in English.**
30+
Remember that non-English idea is quite not friendly for everyone, and might unable to get the response!
31+
32+
- type: checkboxes
33+
attributes:
34+
label: Pre-check
35+
options:
36+
- label: >
37+
I am sure that all the content I provide is in English.
38+
required: true
39+
40+
- type: dropdown
41+
attributes:
42+
label: Apache Dubbo Component
43+
description: |
44+
What Apache Dubbo component are you using? Apache Dubbo has many subprojects, please make sure
45+
to choose the component that you want to ask questions about.
46+
multiple: false
47+
options:
48+
- "Java SDK (apache/dubbo)"
49+
- "Java Samples (apache/dubbo-samples)"
50+
- "Java Integration Cases (apache/dubbo-integration-cases)"
51+
- "Java SPI Extensions (apache/dubbo-spi-extensions)"
52+
- "Java Benchmark (apache/dubbo-benchmark)"
53+
- "Go SDK (apache/dubbo-go)"
54+
- "Go Samples (apache/dubbo-go-samples)"
55+
- "Rust SDK (apache/dubbo-rust)"
56+
- "Node.js SDK (apache/dubbo-js)"
57+
- "Python SDK (apache/dubbo-python)"
58+
- "Kubernetes Integration (apache/dubbo-kubernetes)"
59+
- "Pixiu Gateway (apache/dubbo-go-pixiu)"
60+
- "Pixiu Gateway Samples (apache/dubbo-go-pixiu-samples)"
61+
- "Admin (apache/dubbo-admin)"
62+
- "Website (apache/dubbo-website)"
63+
- "Awesome (apache/dubbo-awesome)"
64+
- "Initializer (apache/dubbo-intializer)"
65+
- "Others (apache/dubbo-xxx)"
66+
validations:
67+
required: true
68+
69+
- type: textarea
70+
attributes:
71+
label: Details
72+
description: Anything you want to ask?
73+
validations:
74+
required: true
75+
76+
- type: checkboxes
77+
attributes:
78+
label: Code of Conduct
79+
description: The Code of Conduct helps create a safe space for everyone. We require that everyone agrees to it.
80+
options:
81+
- label: >
82+
I agree to follow this project's
83+
[Code of Conduct](https://www.apache.org/foundation/policies/conduct)
84+
required: true
85+
86+
- type: markdown
87+
attributes:
88+
value: "Thanks for completing our form!"
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
title: "[Q/A][Java SDK (Component)] xxx"
19+
body:
20+
- type: markdown
21+
attributes:
22+
value: |
23+
<img src="https://dubbo.apache.org/imgs/nav_logo2.png" alt="Dubbo logo" height="90px" align="right" />
24+
25+
Thank you for finding the time to report the question! We really appreciate the community efforts to improve Dubbo.
26+
27+
If you need to report a security issue, please visit [our security policy](https://github.com/apache/dubbo/security/policy).
28+
29+
**Dubbo is open for world wide collaboration, please make sure that all the content you provide is in English.**
30+
Remember that non-English question is quite not friendly for everyone, and might unable to get the response!
31+
32+
- type: checkboxes
33+
attributes:
34+
label: Pre-check
35+
options:
36+
- label: >
37+
I am sure that all the content I provide is in English.
38+
required: true
39+
40+
- type: dropdown
41+
attributes:
42+
label: Apache Dubbo Component
43+
description: |
44+
What Apache Dubbo component are you using? Apache Dubbo has many subprojects, please make sure
45+
to choose the component that you want to ask questions about.
46+
multiple: false
47+
options:
48+
- "Java SDK (apache/dubbo)"
49+
- "Java Samples (apache/dubbo-samples)"
50+
- "Java Integration Cases (apache/dubbo-integration-cases)"
51+
- "Java SPI Extensions (apache/dubbo-spi-extensions)"
52+
- "Java Benchmark (apache/dubbo-benchmark)"
53+
- "Go SDK (apache/dubbo-go)"
54+
- "Go Samples (apache/dubbo-go-samples)"
55+
- "Rust SDK (apache/dubbo-rust)"
56+
- "Node.js SDK (apache/dubbo-js)"
57+
- "Python SDK (apache/dubbo-python)"
58+
- "Kubernetes Integration (apache/dubbo-kubernetes)"
59+
- "Pixiu Gateway (apache/dubbo-go-pixiu)"
60+
- "Pixiu Gateway Samples (apache/dubbo-go-pixiu-samples)"
61+
- "Admin (apache/dubbo-admin)"
62+
- "Website (apache/dubbo-website)"
63+
- "Awesome (apache/dubbo-awesome)"
64+
- "Initializer (apache/dubbo-intializer)"
65+
- "Others (apache/dubbo-xxx)"
66+
validations:
67+
required: true
68+
69+
- type: textarea
70+
attributes:
71+
label: Details
72+
description: Anything you want to know?
73+
validations:
74+
required: true
75+
76+
- type: checkboxes
77+
attributes:
78+
label: Code of Conduct
79+
description: The Code of Conduct helps create a safe space for everyone. We require that everyone agrees to it.
80+
options:
81+
- label: >
82+
I agree to follow this project's
83+
[Code of Conduct](https://www.apache.org/foundation/policies/conduct)
84+
required: true
85+
86+
- type: markdown
87+
attributes:
88+
value: "Thanks for completing our form!"

.github/ISSUE_TEMPLATE/1-bug.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
name: Bug Report
1919
description: File a bug report
2020
title: "[Bug] "
21-
labels: ["status/need-triage"]
21+
labels: ["type/need-triage", "component/need-triage"]
2222
projects: ["apache/337"]
2323
body:
2424
- type: markdown
@@ -58,7 +58,23 @@ body:
5858
issues.
5959
required: true
6060
61-
- type: input
61+
- type: dropdown
62+
attributes:
63+
label: Apache Dubbo Component
64+
description: |
65+
What Apache Dubbo component are you using? Apache Dubbo has many subprojects, please make sure
66+
to choose the component that you want to ask questions about.
67+
multiple: false
68+
options:
69+
- "Java SDK (apache/dubbo)"
70+
- "Java Samples (apache/dubbo-samples)"
71+
- "Java Integration Cases (apache/dubbo-integration-cases)"
72+
- "Java SPI Extensions (apache/dubbo-spi-extensions)"
73+
- "Java Benchmark (apache/dubbo-benchmark)"
74+
validations:
75+
required: true
76+
77+
- type: textarea
6278
attributes:
6379
label: Dubbo Version
6480
description: "Which Dubbo version, JDK version and operating system did you use?"

.github/ISSUE_TEMPLATE/2-feature.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
name: Feature Request
1919
description: Create a Feature Request for Dubbo
2020
title: "[Feature] "
21-
labels: ["status/need-triage"]
21+
labels: ["type/need-triage", "component/need-triage"]
2222
projects: ["apache/337"]
2323
body:
2424
- type: markdown
@@ -53,6 +53,22 @@ body:
5353
feature requirement.
5454
required: true
5555
56+
- type: dropdown
57+
attributes:
58+
label: Apache Dubbo Component
59+
description: |
60+
What Apache Dubbo component are you using? Apache Dubbo has many subprojects, please make sure
61+
to choose the component that you want to ask questions about.
62+
multiple: false
63+
options:
64+
- "Java SDK (apache/dubbo)"
65+
- "Java Samples (apache/dubbo-samples)"
66+
- "Java Integration Cases (apache/dubbo-integration-cases)"
67+
- "Java SPI Extensions (apache/dubbo-spi-extensions)"
68+
- "Java Benchmark (apache/dubbo-benchmark)"
69+
validations:
70+
required: true
71+
5672
- type: textarea
5773
attributes:
5874
label: Descriptions
File renamed without changes.

README.md

Lines changed: 62 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@
66
![License](https://img.shields.io/github/license/alibaba/dubbo.svg)
77
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/apache/dubbo.svg)](http://isitmaintained.com/project/apache/dubbo "Average time to resolve an issue")
88
[![Percentage of issues still open](http://isitmaintained.com/badge/open/apache/dubbo.svg)](http://isitmaintained.com/project/apache/dubbo "Percentage of issues still open")
9-
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Apache%20Dubbo%20is%20a%20high-performance%2C%20java%20based%2C%20open%20source%20RPC%20framework.&url=http://dubbo.apache.org/&via=ApacheDubbo&hashtags=rpc,java,dubbo,micro-service)
10-
[![Twitter Follow](https://img.shields.io/twitter/follow/ApacheDubbo.svg?label=Follow&style=social&logoWidth=0)](https://twitter.com/intent/follow?screen_name=ApacheDubbo)
11-
[![Gitter](https://badges.gitter.im/alibaba/dubbo.svg)](https://gitter.im/alibaba/dubbo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
129

1310
Apache Dubbo is an easy-to-use Web and RPC framework that provides multiple
1411
language implementations(Java, [Go](https://github.com/apache/dubbo-go), [Rust](https://github.com/apache/dubbo-rust), [Node.js](https://github.com/apache/dubbo-js), [Web](https://github.com/apache/dubbo-js)) for communication, service discovery, traffic management,
1512
observability, security, tools, and best practices for building enterprise-ready microservices.
1613

17-
Visit [the official website](https://dubbo.apache.org/) for more information.
14+
We are now collecting Dubbo user info to help us to improve Dubbo further. Kindly support us by providing your usage information on [Wanted: who's using dubbo](https://github.com/apache/dubbo/discussions/13842), thanks :)
1815

1916
## Architecture
2017
![Architecture](https://dubbo.apache.org/imgs/architecture.png)
@@ -67,6 +64,64 @@ Get more details by visiting the links below to get your hands dirty with some w
6764
## Contributing
6865
See [CONTRIBUTING](https://github.com/apache/dubbo/blob/master/CONTRIBUTING.md) for details on submitting patches and the contribution workflow.
6966

67+
### How does the Dubbo Community collaborate?
68+
69+
The Dubbo Community primarily communicates on GitHub through issues, discussions, and pull requests.
70+
71+
- Issues: We use issues to track bugs and tasks. Any **work-related** item is associated with an issue.
72+
- Discussions: We use discussions for questions, early proposals, and announcements. Any **idea-related** item is associated with a discussion.
73+
- Pull Requests: We use pull requests to merge a set of changes from contributors into Dubbo.
74+
75+
We have also implemented [a project board](https://github.com/orgs/apache/projects/337) to monitor all the items.
76+
77+
Any essential changes should be discussed on the mailing list before they happen.
78+
79+
### Seeking for help
80+
81+
If you have questions such as:
82+
83+
- What is Dubbo?
84+
- How do I use Dubbo?
85+
- Why did an unexpected result occur?
86+
87+
Please start a discussion at https://github.com/apache/dubbo/discussions.
88+
89+
However, if you encounter the following situations:
90+
91+
- You're certain there's a bug that Dubbo needs to fix,
92+
- You believe a feature could be enhanced,
93+
- You have a detailed proposal for improving Dubbo,
94+
95+
Please open an issue at https://github.com/apache/dubbo/issues.
96+
97+
To ask effective questions, we recommend reading **[How To Ask Questions The Smart Way](https://github.com/selfteaching/How-To-Ask-Questions-The-Smart-Way/blob/master/How-To-Ask-Questions-The-Smart-Way.md)** first.
98+
99+
### Contribution
100+
101+
- Browse the "help wanted" tasks in the [Dubbo project board](https://github.com/orgs/apache/projects/337).
102+
- Participate in discussions on the mailing list. See the subscription [guide](https://github.com/apache/dubbo/wiki/Mailing-list-subscription-guide).
103+
- Respond to queries in the [discussions](https://github.com/apache/dubbo/issues).
104+
- Resolve bugs reported in [issues](https://github.com/apache/dubbo/issues) and send us a pull request.
105+
- Review existing [pull requests](https://github.com/apache/dubbo/pulls).
106+
- Enhance the [website](https://github.com/apache/dubbo-website). We typically need:
107+
- Blog posts
108+
- Translations for documentation
109+
- Use cases showcasing Dubbo integration in enterprise systems.
110+
- Improve the [dubbo-admin](https://github.com/apache/dubbo-admin).
111+
- Contribute to the projects listed in the [ecosystem](https://github.com/apache/?q=dubbo&type=all&language=&sort=).
112+
- Any other forms of contribution not listed above are also welcome.
113+
- If you're interested in contributing, please send an email to [dev@dubbo.apache.org](mailto:dev@dubbo.apache.org) to let us know!
114+
115+
For further details, please refer our [guide](https://github.com/apache/dubbo/blob/master/CONTRIBUTING.md) about how to contribute Dubbo.
116+
117+
## Reporting bugs
118+
119+
Please follow the [template](https://github.com/apache/dubbo/issues/new?template=dubbo-issue-report-template.md) for reporting any issues.
120+
121+
## Reporting a security vulnerability
122+
123+
Please report security vulnerabilities to [us](mailto:security@dubbo.apache.org) privately.
124+
70125
## Contact
71126
* WeChat: apachedubbo
72127
* DingTalk group: 37290003945
@@ -86,9 +141,9 @@ See [CONTRIBUTING](https://github.com/apache/dubbo/blob/master/CONTRIBUTING.md)
86141
* Fix bugs reported on [issues](https://github.com/apache/dubbo/issues), and send us a pull request.
87142
* Review the existing [pull request](https://github.com/apache/dubbo/pulls).
88143
* Improve the [website](https://github.com/apache/dubbo-website), typically we need
89-
* blog post
90-
* translation on documentation
91-
* use cases around the integration of Dubbo in enterprise systems.
144+
* blog post
145+
* translation on documentation
146+
* use cases around the integration of Dubbo in enterprise systems.
92147
* Improve the [dubbo-admin/dubbo-monitor](https://github.com/apache/dubbo-admin).
93148
* Contribute to the projects listed in [ecosystem](https://github.com/dubbo).
94149
* Other forms of contribution not explicitly enumerated above.
@@ -107,7 +162,6 @@ Please report security vulnerabilities to [us](mailto:security@dubbo.apache.org)
107162
* [Dubbo Ecosystem Entry](https://github.com/apache?utf8=%E2%9C%93&q=dubbo&type=&language=) - A GitHub group `dubbo` to gather all Dubbo relevant projects not appropriate in [apache](https://github.com/apache) group yet
108163
* [Dubbo Website](https://github.com/apache/dubbo-website) - Apache Dubbo official website
109164
* [Dubbo Samples](https://github.com/apache/dubbo-samples) - samples for Apache Dubbo
110-
* [Dubbo Spring Boot](https://github.com/apache/dubbo-spring-boot-project) - Spring Boot Project for Dubbo
111165
* [Dubbo Admin](https://github.com/apache/dubbo-admin) - The reference implementation for Dubbo admin
112166
* [Dubbo Awesome](https://github.com/apache/dubbo-awesome) - Dubbo's slides and video links in Meetup
113167

dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/filter/support/ConsumerContextFilter.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.apache.dubbo.common.extension.Activate;
2020
import org.apache.dubbo.common.extension.ExtensionLoader;
2121
import org.apache.dubbo.common.utils.CollectionUtils;
22-
import org.apache.dubbo.common.utils.NetUtils;
2322
import org.apache.dubbo.rpc.AsyncRpcResult;
2423
import org.apache.dubbo.rpc.Filter;
2524
import org.apache.dubbo.rpc.Invocation;
@@ -63,10 +62,7 @@ public ConsumerContextFilter(ApplicationModel applicationModel) {
6362

6463
@Override
6564
public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
66-
RpcContext.getServiceContext()
67-
.setInvoker(invoker)
68-
.setInvocation(invocation)
69-
.setLocalAddress(NetUtils.getLocalHost(), 0);
65+
RpcContext.getServiceContext().setInvoker(invoker).setInvocation(invocation);
7066

7167
RpcContext context = RpcContext.getClientAttachment();
7268
context.setAttachment(REMOTE_APPLICATION_KEY, invoker.getUrl().getApplication());

dubbo-common/src/main/java/org/apache/dubbo/common/beans/factory/ScopeBeanFactory.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
import org.apache.dubbo.common.logger.LoggerFactory;
2626
import org.apache.dubbo.common.resource.Disposable;
2727
import org.apache.dubbo.common.utils.ConcurrentHashMapUtils;
28+
import org.apache.dubbo.common.utils.ConcurrentHashSet;
2829
import org.apache.dubbo.common.utils.StringUtils;
2930
import org.apache.dubbo.rpc.model.ScopeModelAccessor;
3031

3132
import java.util.ArrayList;
3233
import java.util.List;
34+
import java.util.Set;
3335
import java.util.concurrent.ConcurrentHashMap;
3436
import java.util.concurrent.CopyOnWriteArrayList;
3537
import java.util.concurrent.atomic.AtomicBoolean;
@@ -53,7 +55,7 @@ public class ScopeBeanFactory {
5355
private final List<BeanInfo> registeredBeanInfos = new CopyOnWriteArrayList<>();
5456
private InstantiationStrategy instantiationStrategy;
5557
private final AtomicBoolean destroyed = new AtomicBoolean();
56-
private List<Class<?>> registeredClasses = new ArrayList<>();
58+
private final Set<Class<?>> registeredClasses = new ConcurrentHashSet<>();
5759

5860
public ScopeBeanFactory(ScopeBeanFactory parent, ExtensionAccessor extensionAccessor) {
5961
this.parent = parent;
@@ -299,7 +301,7 @@ public BeanInfo(String name, Object instance) {
299301
}
300302
}
301303

302-
public List<Class<?>> getRegisteredClasses() {
304+
public Set<Class<?>> getRegisteredClasses() {
303305
return registeredClasses;
304306
}
305307
}

0 commit comments

Comments
 (0)