-
Notifications
You must be signed in to change notification settings - Fork 2k
Feature/split rpc context 2 #539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aamingaa
wants to merge
21
commits into
apache:master
Choose a base branch
from
aamingaa:feature/split_rpcContext_2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
97a8e54
feat: split context
aamingaa 37b7f1e
feat: change workflow temp
aamingaa 8ef68d8
feat: change yml
aamingaa a951cb5
feat: rpc context demo
aamingaa c240062
feat: rpc context demo v2
aamingaa b560fbb
feat: add param to penetrateattachment
aamingaa f58742b
feat: remove notes
aamingaa c6ee8bd
feat: remove notes v2
aamingaa 734559e
feat: remove redundant code
aamingaa ef105fa
Update dubbo-3.yml
aamingaa cf3d47a
Merge remote-tracking branch 'origin/master' into feature/split_rpcCo…
aamingaa 2902414
Merge branch 'feature/split_rpcContext_2' of https://github.com/aamin…
aamingaa a88f1be
feat: modify yml
aamingaa 3227e1e
Delete dubbo-2.yml
aamingaa 0536389
Update dubbo-3.yml
aamingaa 0ceb7a0
feat: modify dubbo-3.yml and add license
aamingaa 15b5c1e
Merge branch 'feature/split_rpcContext_2' of https://github.com/aamin…
aamingaa 26926ef
Merge remote-tracking branch 'origin/master' into feature/split_rpcCo…
aamingaa 551d862
Update dubbo-samples-rpccontext/case-versions.conf
aamingaa 9cecb0f
Update dubbo-3_1.yml
aamingaa 4d26af8
feat: modify dubbo version
aamingaa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ## 隐式参数 | ||
| 可以通过 RpcContext 上的 setAttachment 和 getAttachment 在服务消费方和提供方之间进行参数的隐式传递。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| services: | ||
| zookeeper: | ||
| image: zookeeper:latest | ||
|
|
||
| dubbo-samples-rpccontext-provider2: | ||
| type: app | ||
| basedir: . | ||
| mainClass: org.apache.dubbo.samples.rpccontext.RpcContextProvider2 | ||
| systemProps: | ||
| - zookeeper.address=zookeeper | ||
| waitPortsBeforeRun: | ||
| - zookeeper:2181 | ||
| checkPorts: | ||
| - 20882 | ||
| checkLog: "Rpc context provider2 started" | ||
| depends_on: | ||
| - zookeeper | ||
|
|
||
|
|
||
| dubbo-samples-rpccontext-provider: | ||
| type: app | ||
| basedir: . | ||
| mainClass: org.apache.dubbo.samples.rpccontext.RpcContextProvider1 | ||
| systemProps: | ||
| - zookeeper.address=zookeeper | ||
| waitPortsBeforeRun: | ||
| - zookeeper:2181 | ||
| checkPorts: | ||
| - 20880 | ||
| checkLog: "Rpc context provider1 started" | ||
| depends_on: | ||
| - zookeeper | ||
| - dubbo-samples-rpccontext-provider2 | ||
|
|
||
| dubbo-samples-rpccontext-consumer: | ||
| type: test | ||
| basedir: . | ||
| tests: | ||
| - "**/*IT.class" | ||
| systemProps: | ||
| - zookeeper.address=zookeeper | ||
| waitPortsBeforeRun: | ||
| - zookeeper:2181 | ||
| - dubbo-samples-rpccontext-provider:20880 | ||
| - dubbo-samples-rpccontext-provider2:20882 | ||
| depends_on: | ||
| - zookeeper | ||
| - dubbo-samples-rpccontext-provider | ||
| - dubbo-samples-rpccontext-provider2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
|
|
||
|
|
||
| # Supported component versions of the test case | ||
|
|
||
| # Spring app | ||
| dubbo.version=2.7*, 3.* | ||
| spring.version=4.*, 5.* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,128 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| ~ | ||
| ~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
| ~ contributor license agreements. See the NOTICE file distributed with | ||
| ~ this work for additional information regarding copyright ownership. | ||
| ~ The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| ~ (the "License"); you may not use this file except in compliance with | ||
| ~ the License. You may obtain a copy of the License at | ||
| ~ | ||
| ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
| ~ | ||
| ~ Unless required by applicable law or agreed to in writing, software | ||
| ~ distributed under the License is distributed on an "AS IS" BASIS, | ||
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| ~ See the License for the specific language governing permissions and | ||
| ~ limitations under the License. | ||
| ~ | ||
| --> | ||
|
|
||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <groupId>org.apache.dubbo</groupId> | ||
| <version>1.0-SNAPSHOT</version> | ||
|
|
||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <artifactId>dubbo-samples-rpccontext</artifactId> | ||
|
|
||
| <properties> | ||
| <source.level>1.8</source.level> | ||
| <target.level>1.8</target.level> | ||
| <dubbo.version>3.2.0-beta.1</dubbo.version> | ||
| <spring.version>4.3.16.RELEASE</spring.version> | ||
| <junit.version>4.12</junit.version> | ||
| <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version> | ||
| </properties> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.apache.dubbo</groupId> | ||
| <artifactId>dubbo</artifactId> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.apache.dubbo</groupId> | ||
| <artifactId>dubbo-dependencies-zookeeper</artifactId> | ||
| <type>pom</type> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>junit</groupId> | ||
| <artifactId>junit</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.springframework</groupId> | ||
| <artifactId>spring-test</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <dependencyManagement> | ||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.springframework</groupId> | ||
| <artifactId>spring-framework-bom</artifactId> | ||
| <version>${spring.version}</version> | ||
| <type>pom</type> | ||
| <scope>import</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.apache.dubbo</groupId> | ||
| <artifactId>dubbo-bom</artifactId> | ||
| <version>${dubbo.version}</version> | ||
| <type>pom</type> | ||
| <scope>import</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.apache.dubbo</groupId> | ||
| <artifactId>dubbo-dependencies-zookeeper</artifactId> | ||
| <version>${dubbo.version}</version> | ||
| <type>pom</type> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>junit</groupId> | ||
| <artifactId>junit</artifactId> | ||
| <version>${junit.version}</version> | ||
| </dependency> | ||
| </dependencies> | ||
| </dependencyManagement> | ||
|
|
||
| <profiles> | ||
| <!-- For jdk 11 above JavaEE annotation --> | ||
| <profile> | ||
| <id>javax.annotation</id> | ||
| <activation> | ||
| <jdk>[1.11,)</jdk> | ||
| </activation> | ||
| <dependencies> | ||
| <dependency> | ||
| <groupId>javax.annotation</groupId> | ||
| <artifactId>javax.annotation-api</artifactId> | ||
| <version>1.3.2</version> | ||
| </dependency> | ||
| </dependencies> | ||
| </profile> | ||
| </profiles> | ||
|
|
||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <version>${maven-compiler-plugin.version}</version> | ||
| <configuration> | ||
| <source>${source.level}</source> | ||
| <target>${target.level}</target> | ||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.