Skip to content

ForkingClusterInvoker missing RpcContext and the attachments. #2023

Closed

Description

@carryxyh
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.7.0-SNAPSHOT
  • Operating System version: mac os
  • Java version: 1.8

Step to reproduce this issue

  1. Export a service
  2. Make cluster = "forking"
  3. Set Attachment in RpcContext
  4. Do rpc invoke

Expected Result

The attachment in RpcContext has element.

Actual Result

The attachment in RpcContext don't have element.

The problem

I set attachment in the consumer side like this:
image

Then do rpc invoke,but the attachment is missing, (AbstractInvoker#invoke):
image

The problem is that ForkingClusterInvoker use threapool to do rpc invoke which will miss the threadlocal:
image

Activity

  1. added this to the 2.6.4 milestone on Jul 9, 2018
  2. carryxyh commented on Aug 6, 2018

    @carryxyh
    MemberAuthor

    This issue has been fixed by #2024.
    Close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/need-triage

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions