Compatible with the versions after dubbo-2.7.14 (#88)

The ```rpcContext.getAttachments()``` method returns is a copy Map
This commit is contained in:
wuwen 2022-01-12 19:36:15 +08:00 committed by GitHub
parent b92659c0c4
commit dfda1aafca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,7 @@ Release Notes.
* Fix TracePathMatcher should match pattern "**" with paths end by "/"
* Add support `returnedObj` expression for apm-customize-enhance-plugin
* Fix the bug that httpasyncclient-4.x-plugin puts the dirty tracing context in the connection context
* Compatible with the versions after dubbo-2.7.14
#### Documentation

View File

@ -79,7 +79,7 @@ public class DubboInterceptor implements InstanceMethodsAroundInterceptor {
CarrierItem next = contextCarrier.items();
while (next.hasNext()) {
next = next.next();
rpcContext.getAttachments().put(next.getHeadKey(), next.getHeadValue());
rpcContext.setAttachment(next.getHeadKey(), next.getHeadValue());
if (invocation.getAttachments().containsKey(next.getHeadKey())) {
invocation.getAttachments().remove(next.getHeadKey());
}

View File

@ -14,4 +14,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.
2.7.3
2.7.3
2.7.14