Fix plugin bug when DUBBO retries (#4187)
This commit is contained in:
parent
1881a040d4
commit
c6b169544e
|
|
@ -72,6 +72,9 @@ public class DubboInterceptor implements InstanceMethodsAroundInterceptor {
|
|||
while (next.hasNext()) {
|
||||
next = next.next();
|
||||
rpcContext.getAttachments().put(next.getHeadKey(), next.getHeadValue());
|
||||
if (invocation.getAttachments().containsKey(next.getHeadKey())) {
|
||||
invocation.getAttachments().remove(next.getHeadKey());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ContextCarrier contextCarrier = new ContextCarrier();
|
||||
|
|
|
|||
|
|
@ -73,6 +73,9 @@ public class DubboInterceptor implements InstanceMethodsAroundInterceptor {
|
|||
while (next.hasNext()) {
|
||||
next = next.next();
|
||||
rpcContext.getAttachments().put(next.getHeadKey(), next.getHeadValue());
|
||||
if (invocation.getAttachments().containsKey(next.getHeadKey())) {
|
||||
invocation.getAttachments().remove(next.getHeadKey());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ContextCarrier contextCarrier = new ContextCarrier();
|
||||
|
|
|
|||
Loading…
Reference in New Issue