Skip to content
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

could not find any agent worker with com.xxx.xxx #39

Closed
creasy2010 opened this issue Jul 14, 2018 · 3 comments
Closed

could not find any agent worker with com.xxx.xxx #39

creasy2010 opened this issue Jul 14, 2018 · 3 comments

Comments

@creasy2010
Copy link
Contributor

creasy2010 commented Jul 14, 2018

在开发过程中 调用 com.qianmi.mc.api.buyer.BuyerActivityQueryProvider 出现异常.跟踪如下:

image

dubbo 启动时,providerurl信息,可以看出BuyerActivityQueryProvider 并没有相应的provider
image
登陆 zookeeper 查看 ,确实没有
image

查看 dubbo源代码 . 在调用接口,如果没找到相应的SocketWorker,则会报:Could not find any agent worker

  private _handleDubboInvoke(requestId: number) {
    //get request context
    const ctx = queue.requestQueue.get(requestId);
    //get socket agent list
    const agentAddrList = this._zkClient.getAgentAddrList(ctx);
    log('agentAddrSet-> %O', agentAddrList);
    const worker = this._serverAgent.getAvailableSocketWorker(agentAddrList);

    //if could not find any available socket agent worker
    if (!worker) {
      const {requestId, dubboInterface, version, group} = ctx;
      const msg = `requestId#${requestId}:Could not find any agent worker with ${dubboInterface}#${version}#${group} agentList: ${agentAddrList.join(
        ',',
      )}`;
      const err = new ScheduleError(msg);
      this._handleFailed(requestId, err);
      log(err);
      traceErr(err);
      return;
    }

    ctx.invokeHost = worker.host;
    ctx.invokePort = worker.port;

    const providerProps = this._zkClient.getDubboServiceProp(ctx);
    queue.consume(ctx.requestId, worker, providerProps);
  }
@creasy2010 creasy2010 changed the title could not find any agent worker with could not find any agent worker with com.xxx.xxx Jul 14, 2018
@hufeng
Copy link
Member

hufeng commented Jul 20, 2018

  1. 可能真的是zk中就没有这个注册的dubbo service url
  2. 可能是zk发生了disconnected, 导致负载重启之后,不会再连上,因为zk不会watch没有反应能力了

@shige8023
Copy link

怎么解决的

@shige8023
Copy link

@creasy2010

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

No branches or pull requests

3 participants