Skip to content

GenericService泛化调用使用oninvoke、onreturn、onthrow时,FutureFilter的invocation.getMethodName()无法正确返回 #3408

Closed

Description

@xiangxiuhui
  • 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.6.4

Steps to reproduce this issue

  1. GenericService泛化调用
  2. 使用oninvoke、onreturn、onthrow
  3. FutureFilter无法正常回调

Expected Result

StaticContext.getKey(invoker.getUrl(), invocation.getMethodName(), Constants.ON_INVOKE_METHOD_KEY)
返回
com.alibaba.boot.dubbo.demo.consumer.DemoService:1.0.0.sayHello.oninvoke.method

Actual Result

StaticContext.getKey(invoker.getUrl(), invocation.getMethodName(), Constants.ON_INVOKE_METHOD_KEY)
返回
com.alibaba.boot.dubbo.demo.consumer.DemoService:1.0.0.$invoke.oninvoke.method

预期是:

        String methodName = invocation.getMethodName();
        if("$invoke".equals(methodName)) {
            Object[] arguments = invocation.getArguments();
            methodName = (String) arguments[0];
        }

Activity

  1. added
    status/waiting-for-feedback
    and removed
    status/waiting-for-feedback
    on Jan 31, 2019
  2. tswstarplanet commented on Feb 1, 2019

    @tswstarplanet
    Contributor

    Thank you! I will fix this bug in 2.6.x version

  3. chickenlj commented on Feb 1, 2019

    @chickenlj
    Contributor

    @tswstarplanet Have you confirmed this issue? Would you please also submit one to 2.7.x?

  4. tswstarplanet commented on Feb 1, 2019

    @tswstarplanet
    Contributor

    I debugged it on 2.6.x, it indeedly have problems.
    The corresponding code on 2.7.x is refactored. So I will confirm if there are problems, if so, I will fix it.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions