代码之家  ›  专栏  ›  技术社区  ›  morpheus

超分类结构:无法更新排序服务终结点,因为找不到具有mychannel id的通道

  •  0
  • morpheus  · 技术社区  · 6 年前

    我们在对等日志中看到这个错误,不知道该怎么办。这是我们应该忽略的吗?

    2019-03-19 18:03:03.472 UTC [gossip/service] updateEndpoints -> WARN a8d Failed to update ordering service endpoints, due to Channel with mychannel id was not found
    
    1 回复  |  直到 6 年前
        1
  •  0
  •   morpheus    6 年前

    此警告似乎来自以下代码段,看起来可以忽略:

    func (g *gossipServiceImpl) updateEndpoints(chainID string, endpoints []string) {
        if ds, ok := g.deliveryService[chainID]; ok {
            logger.Debugf("Updating endpoints for chainID", chainID)
            if err := ds.UpdateEndpoints(chainID, endpoints); err != nil {
                // The only reason to fail is because of absence of block provider
                // for given channel id, hence printing a warning will be enough
                logger.Warningf("Failed to update ordering service endpoints, due to %s", err)
            }
        }
    

    如果对等方不是通道中的领导者,则它在映射中没有条目